@@ -92,6 +92,41 @@ paths:
92
92
$ref : ' #/components/responses/NotFound'
93
93
' 500 ' :
94
94
$ref : ' #/components/responses/InternalServerError'
95
+ ' /client/env/{environmentUUID}/target-segments/{identifier} ' :
96
+ get :
97
+ summary : Retrieve a segment by identifier
98
+ description : Used to retrieve a segment for a certain account id by identifier
99
+ operationId : GetSegmentByIdentifier
100
+ parameters :
101
+ - name : identifier
102
+ in : path
103
+ required : true
104
+ description : Unique identifier for the segment object in the API
105
+ schema :
106
+ type : string
107
+ - name : environmentUUID
108
+ in : path
109
+ required : true
110
+ description : Unique identifier for the environment object in the API
111
+ schema :
112
+ type : string
113
+ security :
114
+ - BearerAuth : []
115
+ responses :
116
+ ' 200 ' :
117
+ description : OK
118
+ content :
119
+ application/json :
120
+ schema :
121
+ $ref : ' #/components/schemas/Segment'
122
+ ' 401 ' :
123
+ $ref : ' #/components/responses/Unauthenticated'
124
+ ' 403 ' :
125
+ $ref : ' #/components/responses/Unauthorized'
126
+ ' 404 ' :
127
+ $ref : ' #/components/responses/NotFound'
128
+ ' 500 ' :
129
+ $ref : ' #/components/responses/InternalServerError'
95
130
/client/auth :
96
131
post :
97
132
summary : Authenticate with the admin server.
@@ -173,17 +208,16 @@ paths:
173
208
application/json :
174
209
schema :
175
210
$ref : ' #/components/schemas/Evaluation'
176
- ' /stream/environments/{environmentId} ' :
211
+ /stream :
177
212
get :
178
213
summary : Stream endpoint.
179
214
operationId : Stream
180
215
parameters :
181
- - name : environmentId
182
- in : path
183
- required : true
184
- description : Unique UUID for the environemnt object in the API.
216
+ - in : header
217
+ name : API-Key
185
218
schema :
186
219
type : string
220
+ required : true
187
221
security :
188
222
- BearerAuth : []
189
223
responses :
@@ -309,6 +343,16 @@ components:
309
343
required :
310
344
- feature
311
345
- variations
346
+ TargetMap :
347
+ type : object
348
+ properties :
349
+ identifier :
350
+ type : string
351
+ name :
352
+ type : string
353
+ required :
354
+ - idenfifier
355
+ - name
312
356
VariationMap :
313
357
type : object
314
358
properties :
@@ -317,7 +361,7 @@ components:
317
361
targets :
318
362
type : array
319
363
items :
320
- type : string
364
+ $ref : ' #/components/schemas/TargetMap '
321
365
targetSegments :
322
366
type : array
323
367
items :
@@ -405,11 +449,11 @@ components:
405
449
included :
406
450
type : array
407
451
items :
408
- type : string
452
+ $ref : ' #/components/schemas/Target '
409
453
excluded :
410
454
type : array
411
455
items :
412
- type : string
456
+ $ref : ' #/components/schemas/Target '
413
457
rules :
414
458
type : array
415
459
items :
@@ -429,6 +473,39 @@ components:
429
473
required :
430
474
- identifier
431
475
- name
476
+ Target :
477
+ type : object
478
+ properties :
479
+ identifier :
480
+ type : string
481
+ account :
482
+ type : string
483
+ org :
484
+ type : string
485
+ environment :
486
+ type : string
487
+ project :
488
+ type : string
489
+ name :
490
+ type : string
491
+ anonymous :
492
+ type : boolean
493
+ attributes :
494
+ type : object
495
+ createdAt :
496
+ type : integer
497
+ format : int64
498
+ segments :
499
+ type : array
500
+ items :
501
+ $ref : ' #/components/schemas/Segment'
502
+ required :
503
+ - identifier
504
+ - name
505
+ - environment
506
+ - project
507
+ - account
508
+ - org
432
509
Error :
433
510
type : object
434
511
properties :
@@ -445,6 +522,19 @@ components:
445
522
apiKey :
446
523
type : string
447
524
example : 896045f3-42ee-4e73-9154-086644768b96
525
+ target :
526
+ type : object
527
+ properties :
528
+ identifier :
529
+ type : string
530
+ name :
531
+ type : string
532
+ anonymous :
533
+ type : boolean
534
+ attributes :
535
+ type : object
536
+ required :
537
+ - identifier
448
538
required :
449
539
- apiKey
450
540
AuthenticationResponse :
@@ -482,11 +572,7 @@ components:
482
572
flag :
483
573
type : string
484
574
value :
485
- anyOf :
486
- - type : boolean
487
- - type : string
488
- - type : integer
489
- - type : object
575
+ type : string
490
576
required :
491
577
- flag
492
578
- value
0 commit comments