Skip to content

Commit

Permalink
fix: add acl permissions to operations
Browse files Browse the repository at this point in the history
  • Loading branch information
kai687 committed Jan 16, 2024
1 parent dd400c4 commit 28042ec
Show file tree
Hide file tree
Showing 88 changed files with 304 additions and 14 deletions.
4 changes: 4 additions & 0 deletions specs/abtesting/paths/abtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- abtest
operationId: getABTest
x-acl:
- analytics
summary: Get A/B test details.
description: >
Get specific details for an A/B test.
Expand Down Expand Up @@ -29,6 +31,8 @@ delete:
tags:
- abtest
operationId: deleteABTest
x-acl:
- editSettings
summary: Delete an A/B test.
description: >
Delete an A/B test.
Expand Down
4 changes: 4 additions & 0 deletions specs/abtesting/paths/abtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ post:
tags:
- abtest
operationId: addABTests
x-acl:
- editSettings
summary: Create an A/B test.
description: Creates an A/B test.
requestBody:
Expand Down Expand Up @@ -48,6 +50,8 @@ get:
tags:
- abtest
operationId: listABTests
x-acl:
- analytics
summary: List all A/B tests.
description: List all A/B tests.
parameters:
Expand Down
4 changes: 3 additions & 1 deletion specs/abtesting/paths/stopABTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ post:
tags:
- abtest
operationId: stopABTest
x-acl:
- editSettings
summary: Stop an A/B test.
description: >
If stopped, the test is over and can't be restarted.
There is now only one index, receiving 100% of all search requests.
The data gathered for stopped A/B tests is retained.
To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/click/getAverageClickPosition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- click
operationId: getAverageClickPosition
x-acl:
- analytics
summary: Get average click position.
description: >
Return the average click position for the complete time range and for individual days.
Expand Down
4 changes: 3 additions & 1 deletion specs/analytics/paths/click/getClickPositions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- click
operationId: getClickPositions
x-acl:
- analytics
summary: Get click positions.
description: |
Show the number of clicks events and their associated position in the search results.
Expand Down Expand Up @@ -46,7 +48,7 @@ get:
- For positions 11 to 20, all click events are grouped
- For positions 21 and up, all click events are grouped.
type: array
example: [10,10]
example: [10, 10]
items:
type: integer
clickCount:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/click/getClickThroughRate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- click
operationId: getClickThroughRate
x-acl:
- analytics
summary: Get click-through rate (CTR).
description: Returns a [click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/click/getConversionRate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- click
operationId: getConversationRate
x-acl:
- analytics
summary: Get conversion rate (CR).
description: Return a [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/search/getNoClickRate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- search
operationId: getNoClickRate
x-acl:
- analytics
summary: Get no click rate.
description: Returns the rate at which searches don't lead to any clicks. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without clicks.
parameters:
Expand Down
4 changes: 3 additions & 1 deletion specs/analytics/paths/search/getNoResultsRate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ get:
tags:
- search
operationId: getNoResultsRate
x-acl:
- analytics
summary: Get no results rate.
description: Returns the rate at which searches didn't return any results.
description: Returns the rate at which searches didn't return any results.
parameters:
- $ref: '../../../common/parameters.yml#/Index'
- $ref: '../../../common/parameters.yml#/StartDate'
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/search/getSearchesCount.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- search
operationId: getSearchesCount
x-acl:
- analytics
summary: Get number of searches.
description: Returns the number of searches within a time range.
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/search/getSearchesNoClicks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- search
operationId: getSearchesNoClicks
x-acl:
- analytics
summary: Get top searches with no clicks.
description: Return the most popular of the last 1,000 searches that didn't lead to any clicks.
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/search/getSearchesNoResults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- search
operationId: getSearchesNoResults
x-acl:
- analytics
summary: Get top searches with no results.
description: Returns the most popular of the latest 1,000 searches that didn't return any results.
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/search/getTopCountries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- search
operationId: getTopCountries
x-acl:
- analytics
summary: Get top countries.
description: Returns top countries. Limited to the 1,000 most frequent ones.
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/search/getTopFilterAttributes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- search
operationId: getTopFilterAttributes
x-acl:
- analytics
summary: Get top filterable attributes.
description: Return the most popular [filterable attributes](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) in the 1,000 most recently used filters.
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/search/getTopFilterForAttribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- search
operationId: getTopFilterForAttribute
x-acl:
- analytics
summary: Get top filter values for an attribute.
description: Returns the most popular filter values for an attribute in the 1,000 most recently used filters.
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/search/getTopFiltersNoResults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- search
operationId: getTopFiltersNoResults
x-acl:
- analytics
summary: Get top filters for a no result search.
description: Returns top filters for filter-enabled searches that don't return results. Limited to the 1,000 most recently used filters.
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/search/getTopHits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- search
operationId: getTopHits
x-acl:
- analytics
summary: Get top hits.
description: Return the most popular clicked results in the last 1,000 searches.
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/search/getTopSearches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- search
operationId: getTopSearches
x-acl:
- analytics
summary: Get top searches.
description: Returns the most popular of the latest 1,000 searches. For each search, also returns the number of hits.
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/search/getUsersCount.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- search
operationId: getUsersCount
x-acl:
- analytics
summary: Get user count.
description: Return the count of unique users.
parameters:
Expand Down
2 changes: 2 additions & 0 deletions specs/analytics/paths/status/getStatus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ get:
tags:
- advanced
operationId: getStatus
x-acl:
- analytics
summary: Get Analytics API status.
description: >
Return the latest update time of the Analytics API for an index. If the index has been recently created or no search has been performed yet, `updatedAt` will be `null`.
Expand Down
12 changes: 12 additions & 0 deletions specs/ingestion/paths/authentications/authenticationID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ get:
summary: Get a authentication.
description: Get the authentication of the given authenticationID.
operationId: getAuthentication
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/pathAuthenticationID'
responses:
Expand All @@ -22,6 +26,10 @@ patch:
summary: Update a authentication.
description: Update the authentication of the given authenticationID.
operationId: updateAuthentication
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/pathAuthenticationID'
requestBody:
Expand All @@ -46,6 +54,10 @@ delete:
summary: Delete a authentication.
description: Soft delete the authentication of the given authenticationID.
operationId: deleteAuthentication
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/pathAuthenticationID'
responses:
Expand Down
8 changes: 8 additions & 0 deletions specs/ingestion/paths/authentications/authentications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ get:
summary: Get a list of authentications.
description: Get a list of authentications for the given query parameters, with pagination details.
operationId: getAuthentications
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/itemsPerPage'
- $ref: '../../common/parameters.yml#/page'
Expand Down Expand Up @@ -39,6 +43,10 @@ post:
summary: Create a authentication.
description: Create a authentication.
operationId: createAuthentication
x-acl:
- addObject
- deleteIndex
- editSettings
requestBody:
description: ''
content:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ post:
summary: Search among authentications.
description: Search among authentications with a defined set of parameters.
operationId: searchAuthentications
x-acl:
- addObject
- deleteIndex
- editSettings
requestBody:
content:
application/json:
Expand Down
12 changes: 12 additions & 0 deletions specs/ingestion/paths/destinations/destinationID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ get:
summary: Get a destination.
description: Get the destination of the given destinationID.
operationId: getDestination
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/pathDestinationID'
responses:
Expand All @@ -22,6 +26,10 @@ patch:
summary: Update a destination.
description: Update the destination of the given destinationID.
operationId: updateDestination
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/pathDestinationID'
requestBody:
Expand All @@ -46,6 +54,10 @@ delete:
summary: Delete a destination.
description: Soft delete the destination of the given destinationID.
operationId: deleteDestination
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/pathDestinationID'
responses:
Expand Down
8 changes: 8 additions & 0 deletions specs/ingestion/paths/destinations/destinations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ get:
summary: Get a list of destinations.
description: Get a list of destinations for the given query parameters, with pagination details.
operationId: getDestinations
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/itemsPerPage'
- $ref: '../../common/parameters.yml#/page'
Expand Down Expand Up @@ -39,6 +43,10 @@ post:
summary: Create a destination.
description: Create a destination.
operationId: createDestination
x-acl:
- addObject
- deleteIndex
- editSettings
requestBody:
description: ''
content:
Expand Down
4 changes: 4 additions & 0 deletions specs/ingestion/paths/destinations/searchDestinations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ post:
summary: Search among destinations.
description: Search among destinations with a defined set of parameters.
operationId: searchDestinations
x-acl:
- addObject
- deleteIndex
- editSettings
requestBody:
content:
application/json:
Expand Down
4 changes: 4 additions & 0 deletions specs/ingestion/paths/runs/events/eventID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ get:
summary: Get an event.
description: Get a single event for a specific runID.
operationId: getEvent
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../../common/parameters.yml#/pathRunID'
- $ref: '../../../common/parameters.yml#/pathEventID'
Expand Down
4 changes: 4 additions & 0 deletions specs/ingestion/paths/runs/events/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ get:
summary: Get a list of events.
description: Get a list of events associated to the given runID, for the given query parameters.
operationId: getEvents
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../../common/parameters.yml#/pathRunID'
- $ref: '../../../common/parameters.yml#/itemsPerPage'
Expand Down
4 changes: 4 additions & 0 deletions specs/ingestion/paths/runs/runID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ get:
summary: Get a run.
description: Get a single run for the given ID.
operationId: getRun
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/pathRunID'
responses:
Expand Down
4 changes: 4 additions & 0 deletions specs/ingestion/paths/runs/runs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ get:
summary: Get a list of runs.
description: Get a list of runs for the given query parameters, with pagination details.
operationId: getRuns
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/itemsPerPage'
- $ref: '../../common/parameters.yml#/page'
Expand Down
Loading

0 comments on commit 28042ec

Please sign in to comment.