Skip to content

Commit 9a5e0c1

Browse files
Samuel Bodinshortcuts
Samuel Bodin
andauthored
fix(spec): add more tags (#464)
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 721867f commit 9a5e0c1

29 files changed

+177
-55
lines changed

specs/abtesting/paths/abtest.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
get:
2+
tags:
3+
- abtest
24
operationId: getABTest
5+
summary: Get a test.
36
description: >
4-
Returns metadata and metrics for A/B test id.
5-
6-
Behaves in the same way as GET /2/abtests however the endpoint will return 403.
7-
summary: Returns metadata and metrics for A/B test id.
7+
Returns metadata and metrics for an A/B test.
88
parameters:
99
- $ref: '../common/parameters.yml#/ID'
1010
responses:
@@ -24,9 +24,11 @@ get:
2424
$ref: '../../common/responses/IndexNotFound.yml'
2525

2626
delete:
27+
tags:
28+
- abtest
2729
operationId: deleteABTest
28-
description: Deletes the A/B Test and removes all associated metadata & metrics.
29-
summary: Deletes the A/B Test.
30+
summary: Delete a test.
31+
description: Delete a test.
3032
parameters:
3133
- $ref: '../common/parameters.yml#/ID'
3234
responses:

specs/abtesting/paths/abtests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
post:
2+
tags:
3+
- abtest
24
operationId: addABTests
5+
summary: Create a test.
36
description: >
47
Creates a new A/B test with provided configuration.
58
69
You can set an A/B test on two different indices with different settings, or on the same index with different search parameters by providing a customSearchParameters setting on one of the variants.
7-
summary: Creates a new A/B test with provided configuration.
810
requestBody:
911
required: true
1012
content:
@@ -46,10 +48,14 @@ post:
4648
$ref: '../../common/responses/IndexNotFound.yml'
4749

4850
get:
51+
tags:
52+
- abtest
4953
operationId: listABTests
54+
summary: List all tests.
5055
description: >
51-
Fetch all existing A/B tests for App that are available for the current API Key. Returns an array of metadata and metrics. When no data has been processed, the metrics will be returned as null.
52-
summary: Fetch all existing A/B tests for App that are available for the current API Key.
56+
Fetch all existing A/B tests for App that are available for the current API Key.
57+
58+
When no data has been processed, the metrics will be returned as null.
5359
parameters:
5460
- $ref: '../../common/parameters.yml#/Offset'
5561
- $ref: '../../common/parameters.yml#/Limit'

specs/abtesting/paths/stopABTest.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
post:
2+
tags:
3+
- abtest
24
operationId: stopABTest
5+
summary: Stop a test.
36
description: >
47
Marks the A/B test as stopped.
58
69
At this point, the test is over and cannot be restarted.
710
As a result, your application is back to normal: index A will perform as usual, receiving 100% of all search requests.
811
Associated metadata and metrics are still stored.
9-
summary: Marks the A/B test as stopped.
1012
parameters:
1113
- $ref: '../common/parameters.yml#/ID'
1214
responses:

specs/abtesting/spec.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ servers:
2121
security:
2222
- appId: []
2323
apiKey: []
24+
tags:
25+
- name: abtest
26+
x-displayName: A/B Testing
27+
description: Manage A/B Tests.
28+
x-tagGroups:
29+
- name: General
30+
tags:
31+
- abtest
2432
paths:
2533
# ######################
2634
# ### Custom request ###

specs/analytics/paths/click/getAverageClickPosition.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- click
24
operationId: getAverageClickPosition
5+
summary: Get average click position.
36
description: Returns the average click position. The endpoint returns a value for the complete given time range, as well as a value per day.
4-
summary: Returns the average click position.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../../common/parameters.yml#/StartDate'

specs/analytics/paths/click/getClickPositions.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
get:
2+
tags:
3+
- click
24
operationId: getClickPositions
3-
description: Returns the distribution of clicks per range of positions.
4-
summary: Returns the distribution of clicks per range of positions.
5+
summary: Get clicks per positions.
6+
description: |
7+
Returns the distribution of clicks per range of positions.
8+
9+
If the groups all have a count of 0, it means Algolia didn’t receive any click events for the queries with the clickAnalytics search parameter set to true.
10+
The count is 0 until Algolia receives at least one click event.
511
parameters:
612
- $ref: '../../../common/parameters.yml#/Index'
713
- $ref: '../../../common/parameters.yml#/StartDate'
@@ -35,9 +41,11 @@ get:
3541
description: >
3642
Range of positions with the following pattern:
3743
38-
Positions from 1 to 10 included are displayed in separated groups.
39-
Positions from 11 to 20 included are grouped together.
40-
Positions from 21 and up are grouped together.
44+
- Positions from 1 to 10 included are displayed in separated groups.
45+
46+
- Positions from 11 to 20 included are grouped together.
47+
48+
- Positions from 21 and up are grouped together.
4149
type: array
4250
items:
4351
type: integer

specs/analytics/paths/click/getClickThroughRate.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- click
24
operationId: getClickThroughRate
5+
summary: Get click-through rate (CTR).
36
description: Returns a click-through rate (CTR). The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of clicks and searches used to compute the rates.
4-
summary: Returns a click-through rate (CTR).
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../../common/parameters.yml#/StartDate'

specs/analytics/paths/click/getConversionRate.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- click
24
operationId: getConversationRate
5+
summary: Get conversion rate (CR).
36
description: Returns a conversion rate (CR). The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of conversion and searches used to compute the rates.
4-
summary: Returns a conversion rate (CR).
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../../common/parameters.yml#/StartDate'

specs/analytics/paths/search/getNoClickRate.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getNoClickRate
5+
summary: Get no click rate.
36
description: Returns the rate at which searches didn'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.
4-
summary: Returns the rate at which searches didn't lead to any clicks.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../../common/parameters.yml#/StartDate'

specs/analytics/paths/search/getNoResultsRate.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getNoResultsRate
5+
summary: Get no results rate.
36
description: Returns the rate at which searches didn't return any results. 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 results used to compute the rates.
4-
summary: Returns the rate at which searches didn't return any results.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../../common/parameters.yml#/StartDate'

specs/analytics/paths/search/getSearchesCount.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getSearchesCount
5+
summary: Get searches count.
36
description: Returns the number of searches across the given time range. The endpoint returns a value for the complete given time range, as well as a value per day.
4-
summary: Returns the number of searches across the given time range.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../../common/parameters.yml#/StartDate'

specs/analytics/paths/search/getSearchesNoClicks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getSearchesNoClicks
5+
summary: Get top searches with no clicks.
36
description: Returns top searches that didn't lead to any clicks. Limited to the 1000 most frequent ones. For each search, also returns the average number of found hits.
4-
summary: Returns top searches that didn't lead to any clicks.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../../common/parameters.yml#/StartDate'

specs/analytics/paths/search/getSearchesNoResults.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getSearchesNoResults
5+
summary: Get top searches with no results.
36
description: Returns top searches that didn't return any results. Limited to the 1000 most frequent ones.
4-
summary: Returns top searches that didn't return any results.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../../common/parameters.yml#/StartDate'

specs/analytics/paths/search/getTopCountries.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getTopCountries
5+
summary: Get top countries.
36
description: Returns top countries. Limited to the 1000 most frequent ones.
4-
summary: Returns top countries.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../../common/parameters.yml#/StartDate'

specs/analytics/paths/search/getTopFilterAttributes.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getTopFilterAttributes
5+
summary: Get top filter attributes.
36
description: Returns top filter attributes. Limited to the 1000 most used filters.
4-
summary: Returns top filter attributes.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../common/parameters.yml#/Search'

specs/analytics/paths/search/getTopFilterForAttribute.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getTopFilterForAttribute
5+
summary: Get top filters for the an attribute.
36
description: Returns top filters for the given attribute. Limited to the 1000 most used filters.
4-
summary: Returns top filters for the given attribute.
57
parameters:
68
- $ref: '../../common/parameters.yml#/Attribute'
79
- $ref: '../../../common/parameters.yml#/Index'

specs/analytics/paths/search/getTopFiltersNoResults.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getTopFiltersNoResults
5+
summary: Get top filters for a no result search.
36
description: Returns top filters with no results. Limited to the 1000 most used filters.
4-
summary: Returns top filters with no results.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../common/parameters.yml#/Search'

specs/analytics/paths/search/getTopHits.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getTopHits
5+
summary: Get top hits.
36
description: Returns top hits. Limited to the 1000 most frequent ones.
4-
summary: Returns top hits.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../common/parameters.yml#/Search'

specs/analytics/paths/search/getTopSearches.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getTopSearches
5+
summary: Get top searches.
36
description: Returns top searches. Limited to the 1000 most frequent ones. For each search, also returns the average number of hits returned.
4-
summary: Returns top searches.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../common/parameters.yml#/ClickAnalytics'

specs/analytics/paths/search/getUsersCount.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- search
24
operationId: getUsersCount
5+
summary: Get users count.
36
description: Returns the distinct count of users across the given time range. The endpoint returns a value for the complete given time range, as well as a value per day.
4-
summary: Returns the distinct count of users across the given time range.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
- $ref: '../../../common/parameters.yml#/StartDate'

specs/analytics/paths/status/getStatus.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
get:
2+
tags:
3+
- advanced
24
operationId: getStatus
5+
summary: Get Analytics API status.
36
description: Returns the latest update time of the analytics API for a given index. If the index has been recently created and/or no search has been performed yet the updated time will be null.
4-
summary: Get latest update time of the analytics API.
57
parameters:
68
- $ref: '../../../common/parameters.yml#/Index'
79
responses:

specs/analytics/spec.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,24 @@ servers:
2121
security:
2222
- appId: []
2323
apiKey: []
24+
tags:
25+
- name: advanced
26+
x-displayName: Advanced
27+
description: Advanced operations.
28+
- name: click
29+
x-displayName: Click Analytics
30+
description: Get all click analytics.
31+
- name: search
32+
x-displayName: Search Analytics
33+
description: Get all search analytics.
34+
x-tagGroups:
35+
- name: General
36+
tags:
37+
- search
38+
- click
39+
- name: Others
40+
tags:
41+
- advanced
2442
paths:
2543
# ######################
2644
# ### Custom request ###
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: Request Entity Too Large.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: '../schemas/ErrorBase.yml'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: Unprocessable Entity.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: '../schemas/ErrorBase.yml'

specs/insights/common/enums.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
eventType:
22
type: string
3-
description: An eventType can be a click, a conversion, or a view.
43
enum: [click, conversion, view]

0 commit comments

Comments
 (0)