Skip to content

Commit fe6e130

Browse files
committed
refactor(abtests): remove single usage declaration for offset and limit to avoid confusion
1 parent 18e0c1c commit fe6e130

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed

specs/abtesting/paths/abtests.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,21 @@ get:
6262
summary: List all A/B tests
6363
description: Lists all A/B tests you configured for this application.
6464
parameters:
65-
- $ref: '../../common/parameters.yml#/Offset'
66-
- $ref: '../../common/parameters.yml#/Limit'
65+
- name: offset
66+
in: query
67+
description: Position of the first item to return.
68+
required: false
69+
schema:
70+
type: integer
71+
default: 0
72+
minimum: 0
73+
- name: limit
74+
in: query
75+
description: Number of items to return.
76+
required: false
77+
schema:
78+
type: integer
79+
default: 10
6780
- name: indexPrefix
6881
in: query
6982
description: Index name prefix. Only A/B tests for indices starting with this string are included in the response.

specs/common/parameters.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -104,25 +104,6 @@ HitsPerPage:
104104
type: integer
105105
default: 100
106106

107-
Offset:
108-
in: query
109-
name: offset
110-
description: Position of the first item to return.
111-
required: false
112-
schema:
113-
type: integer
114-
default: 0
115-
minimum: 0
116-
117-
Limit:
118-
in: query
119-
name: limit
120-
description: Number of items to return.
121-
required: false
122-
schema:
123-
type: integer
124-
default: 10
125-
126107
# misc
127108
objectID:
128109
type: string

0 commit comments

Comments
 (0)