This repository has been archived by the owner on Dec 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
inventory-service.yml
778 lines (761 loc) · 26.2 KB
/
inventory-service.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
consumes:
- application/json
definitions:
Coefficients:
description: Coefficients represents a set of attributes to calculate confidence
properties:
dailyinventorypercentage:
description: Percent of inventory that is sold daily
format: double
type: number
x-go-name: DailyInventoryPercentage
probexiterror:
description: Probability of an exit error (missed 'departed' event) occurring
format: double
type: number
x-go-name: ProbExitError
probinstoreread:
description: Probability of a tag in the store being read by the overhead
sensor each day
format: double
type: number
x-go-name: ProbInStoreRead
probunreadtoread:
description: Probability of an unreadable tag becoming readable again each
day (i.e. moved or retagged)
format: double
type: number
x-go-name: ProbUnreadToRead
type: object
ErrReport:
description: ErrReport is used to wrap schema validation errors int json object
properties:
description:
type: string
x-go-name: Description
errortype:
type: string
x-go-name: ErrorType
field:
type: string
x-go-name: Field
value:
type: object
x-go-name: Value
type: object
Facility:
description: Facility represents a facility model
properties:
coefficients:
$ref: '#/definitions/Coefficients'
name:
description: Facility name
type: string
x-go-name: Name
type: object
HandheldEvent:
description: HandheldEvent represents a handheld event model
properties:
event:
description: Can be FullScanStart, FullScanComplete, or Calculate
type: string
x-go-name: Event
timestamp:
description: Time event was received in epoch
format: int64
minimum: 13
type: integer
x-go-name: Timestamp
type: object
LocationHistory:
description: LocationHistory is the model to record the whereabouts history of
a tag
properties:
location:
type: string
x-go-name: Location
source:
type: string
x-go-name: Source
timestamp:
format: int64
type: integer
x-go-name: Timestamp
type: object
RequestBody:
properties:
confidence:
description: Minimum probability items must meet
format: double
type: number
x-go-name: Confidence
count_only:
description: Return only tag count
type: boolean
x-go-name: CountOnly
cursor:
description: Cursor from previous response used to retrieve next page of results.
type: string
x-go-name: Cursor
endtime:
description: Millisecond epoch stop time
format: int64
type: integer
x-go-name: EndTime
epc:
description: SGTIN EPC code
type: string
x-go-name: Epc
epc_state:
description: EPC state of ‘present’ or ‘departed’
type: string
x-go-name: EpcState
facility_id:
description: Return only facilities provided
type: string
x-go-name: FacilityID
productId:
description: GTIN-14 decoded from EPC
type: string
x-go-name: ProductID
qualified_state:
description: User set qualified state for the item
type: string
x-go-name: QualifiedState
size:
description: Number of results per page
format: int64
type: integer
x-go-name: Size
starttime:
description: Millisecond epoch start time
format: int64
type: integer
x-go-name: StartTime
time:
description: Millisecond epoch current time
format: int64
type: integer
x-go-name: Time
title: RequestBody is the model for request body used for many data apis.
type: object
Tag:
description: Tag is the model containing items for a Tag
properties:
arrived:
description: Arrival time in milliseconds epoch
format: int64
type: integer
x-go-name: Arrived
confidence:
description: Probability item is actually present
format: double
type: number
x-go-name: Confidence
encode_format:
description: TBD
type: string
x-go-name: EpcEncodeFormat
epc:
description: SGTIN EPC code
type: string
x-go-name: Epc
epc_context:
description: Customer defined context
type: string
x-go-name: EpcContext
epc_state:
description: Current state of tag, either ’present’ or ’departed’
type: string
x-go-name: EpcState
event:
description: Last event recorded for tag
type: string
x-go-name: Event
facility_id:
description: Facility ID
type: string
x-go-name: FacilityID
filter_value:
description: Part of EPC, denotes packaging level of the item
format: int64
type: integer
x-go-name: FilterValue
last_read:
description: Tag last read time in milliseconds epoch
format: int64
type: integer
x-go-name: LastRead
location_history:
description: Array of objects showing history of the tag's location
items:
$ref: '#/definitions/LocationHistory'
type: array
x-go-name: LocationHistory
product_id:
description: ProductID
type: string
x-go-name: ProductID
qualified_state:
description: Customer defined state
type: string
x-go-name: QualifiedState
source:
description: Where tags were read from (fixed or handheld)
type: string
x-go-name: Source
tid:
description: Tag manufacturer ID
type: string
x-go-name: Tid
uri:
description: URI string representation of tag
type: string
x-go-name: URI
type: object
resultsResponse:
description: Response is the model used to return the query response
properties:
count:
description: Count of records for query
format: int64
type: integer
x-go-name: Count
results:
description: Array containing results of query
type: object
x-go-name: Results
type: object
x-go-name: Response
info:
description: Inventory Microservice.
title: Inventory Service.
version: 1.0.0
paths:
/:
get:
consumes:
- application/json
description: Endpoint that is used to determine if the application is ready
to take web requests
operationId: Healthcheck
produces:
- application/json
responses:
"200":
description: OK
schemes:
- http
summary: Healthcheck Endpoint
tags:
- default
/inventory/facilities:
get:
consumes:
- application/json
description: |-
This API call is used to retrieve data for facilities that are configured on RSP.<br><br>
inventory/facilities
inventory/facilities?$filter=(name eq 'CH6_Common_Area') - Filter facilities by name
Example Result:
```
{
"results": [
{
"coefficients": {
"dailyinventorypercentage": 0.01,
"probexiterror": 0.1,
"probinstoreread": 0.75,
"probunreadtoread": 0.2
},
"name": "CH6"
}
]
}
```
operationId: getFacilities
produces:
- application/json
responses:
"200":
description: OK
schema:
properties:
count:
description: Count of records for query
type: integer
results:
description: Array containing results of query
items:
$ref: '#/definitions/Facility'
type: array
type: object
"400":
description: BadRequest
schema:
$ref: '#/responses/schemaValidation'
"500":
description: InternalError
schema:
$ref: '#/responses/internalError'
schemes:
- http
summary: Retrieves Data for Facilities
tags:
- facilities
/inventory/handheldevents:
get:
consumes:
- application/json
description: |-
This API call is used to retrieve handheld events that have been received.<br><br>
+ `/inventory/handheldevents`
+ `/inventory/handheldevents?$filter=(event eq 'FullScanStart')`
+ `/inventory/handheldevents?$filter=(event eq 'FullScanComplete')`
+ `/inventory/handheldevents?$filter=(event eq 'Calculate')`
Example Result:
```
{
"results": [
{
"_id": "59d2818dd0cb6260bf85e3cf",
"timestamp": 1506967944919,
"event": "FullScanStart"
},
{
"_id": "59d28294d0cb6260bf85f70e",
"timestamp": 1506968207311,
"event": "FullScanComplete"
},
{
"_id": "59d28294d0cb6260bf85f710",
"timestamp": 1506968212265,
"event": "Calculate"
}]
}
```
operationId: getHandheldevents
produces:
- application/json
responses:
"200":
description: OK
schema:
description: Results Response
properties:
count:
description: Count of records for query
type: integer
results:
description: Array containing results of query
items:
$ref: '#/definitions/HandheldEvent'
type: array
type: object
"400":
$ref: '#/responses/schemaValidation'
"500":
$ref: '#/responses/internalError'
schemes:
- http
summary: Retrieves Handheld Event Data
tags:
- handheldevents
/inventory/query/current:
post:
consumes:
- application/json
description: |-
Example Request Input:
```
{
"qualified_state":"sold",
"facility_id":"store001"
}
```
+ __qualified_state__ - User set qualified state for the item
+ __facility_id__ - Return only facilities provided
+ __epc_state__ - EPC state of 'present' or 'departed'
+ __starttime__ - Millisecond epoch start time
+ __endtime__ - Millisecond epoch stop time
operationId: postCurrentInventory
produces:
- application/json
- 'schemes:'
- http
responses:
"200":
description: resultsResponse
schema:
$ref: '#/definitions/resultsResponse'
"400":
$ref: '#/responses/schemaValidation'
"403":
$ref: '#/responses/forbidden'
"500":
$ref: '#/responses/internalError'
"502":
$ref: '#/responses/externalError'
"503":
$ref: '#/responses/serviceUnavailable'
"504":
$ref: '#/responses/externalServiceTimeout'
summary: Post current inventory snapshot to the cloud connector
tags:
- current
/inventory/query/searchByProductID:
post:
consumes:
- application/json
description: "Returns a list of unique EPCs matching the ProductID provided.
Body parameters shall be provided in request body in JSON format.<br><br>\n\nExample
Request Input:\n```\n{\n\"productId\":\"00012345678905\",\n\"facility_id\":\"store001\",\n\"confidence\":.75,\n\"cursor\":\"aGksIDovMSB0aGlz\",\n\"size\":500,\n\"count_only\":false\n}\n```\n\n\n+
productId - A valid productId(GTIN-14) to search for\n+ facility_id - Return
only facilities provided\n+ confidence - Minimum probability items must meet\n+
cursor - Cursor from previous response used to retrieve next page of results\n+
size - Number of results per page\n+ count_only - Return only tag count\n\n\n\nExample
Response:\n```\n{\n\"paging\":{\n\"cursor\":\"string\"\n},\n\"results\":[\n{\n\"epc\":\"string\",\n\"facility_id\":\"string\",\n\"event\":\"string\",\n\"productId\":\"string\",\n\"last_read\":0,\n\"arrived\":0,\n\"epc_state\":\"string\",\n\"confidence\":0,\n\"encode_format\":\"string\",\n\"tid\":\"string\",\n\"qualified_state\":\"string\",\n\"epc_context\":\"string\",\n\"location_history\":[\n{\n\"location\":\"string\",\n\"timestamp\":0\n}\n]\n}\n]\n}\n```\n\n+
paging - Paging object\n+ cursor - Cursor used to get next page of results\n+
results - Array of result objects\n+ epc - SGTIN EPC code\n+ facility_id
\ - Facility ID\n+ event - Last event recorded for tag\n+ productId - productId(GTIN-14)\n+
last_read - Tag last read Time in milliseconds epoch\n+ arrived - Arrival
time in milliseconds epoch\n+ epc_state - Current state of tag, either 'present'
or 'departed'\n+ confidence - Probability item is in inventory\n+ encode_format
\ -\n+ tid - Tag manufacturer ID\n+ qualified_state - Customer defined state\n+
epc_context - Customer defined context\n+ location_history - Array of objects
showing tag history\n+ location \t- Location of tag at below time\n+ timestamp
\ \t- Time in milliseconds epoch"
operationId: GetSearchByProductID
produces:
- application/json
responses:
"200":
description: resultsResponse
schema:
$ref: '#/definitions/resultsResponse'
"400":
$ref: '#/responses/schemaValidation'
"403":
$ref: '#/responses/forbidden'
"500":
$ref: '#/responses/internalError'
"502":
$ref: '#/responses/externalError'
"503":
$ref: '#/responses/serviceUnavailable'
"504":
$ref: '#/responses/externalServiceTimeout'
schemes:
- http
summary: Retrieves EPC data corresponding to specified ProductID
tags:
- searchByProductID
/inventory/search:
post:
consumes:
- application/json
description: "Returns a list of tags with their EPCs matching a pattern. Body
parameters shall be provided in request body in JSON format.<br><br>\n\nExample
Request Input:\n```\n{\n\"epc\":\"3038E511C6E9A6400012D687\",\n\"facility_id\":\"store001\",\n\"cursor\":\"aGksIDovMSB0aGlz\",\n\"size\":500\n}\n```\n\n+
epc - EPC search string which can contain a single asterisk at the beginning,
middle, or end of EPC string\n+ facility_id - Facility code or identifier\n+
cursor - Cursor from previous response used to retrieve next page of results\n+
size - Number of results per page\n\nExample Response:\n```\n{\n\"paging\":{\n\"cursor\":\"string\"\n},\n\"results\":[\n{\n\"epc\":\"string\",\n\"facility_id\":\"string\",\n\"event\":\"string\",\n\"gtin\":\"string\",\n\"last_read\":0,\n\"arrived\":0,\n\"epc_state\":\"string\",\n\"confidence\":0,\n\"encode_format\":\"string\",\n\"tid\":\"string\",\n\"qualified_state\":\"string\",\n\"epc_context\":\"string\",\n\"location_history\":[\n{\n\"location\":\"string\",\n\"timestamp\":0\n}\n]\n}\n]\n}\n```\n\n+
paging - Paging object\n+ cursor - Cursor used to get next page of results\n+
results - Array of result objects\n+ epc - SGTIN EPC code\n+ facility_id
\ - Facility ID\n+ event - Last event recorded for tag\n+ gtin - GTIN-14
decoded from EPC\n+ last_read - Tag last read Time in milliseconds epoch\n+
arrived - Arrival time in milliseconds epoch\n+ epc_state - Current state
of tag, either 'present' or 'departed'\n+ confidence - Probability item is
in inventory\n+ encode_format -\n+ tid - Tag manufacturer ID\n+ qualified_state
\ - Customer defined state\n+ epc_context - Customer defined context\n+ location_history
\ - Array of objects showing tag history\n+ location \t- Location of tag
at below time\n+ timestamp \t- Time in milliseconds epoch"
operationId: getSearchByEpc
produces:
- application/json
responses:
"200":
description: resultsResponse
schema:
$ref: '#/definitions/resultsResponse'
"400":
$ref: '#/responses/schemaValidation'
"403":
$ref: '#/responses/forbidden'
"500":
$ref: '#/responses/internalError'
"502":
$ref: '#/responses/externalError'
"503":
$ref: '#/responses/serviceUnavailable'
"504":
$ref: '#/responses/externalServiceTimeout'
schemes:
- http
summary: Retrieves tag data corresponding to specified EPC pattern
tags:
- epc
/inventory/tags:
delete:
consumes:
- application/json
description: This endpoint allows the customer to delete all the tags in the
tags table.<br><br>
operationId: deleteAllTags
produces:
- application/json
responses:
"204":
description: resultsResponse
schema:
$ref: '#/definitions/resultsResponse'
"400":
$ref: '#/responses/schemaValidation'
"403":
$ref: '#/responses/forbidden'
"500":
$ref: '#/responses/internalError'
"502":
$ref: '#/responses/externalError'
"503":
$ref: '#/responses/serviceUnavailable'
"504":
$ref: '#/responses/externalServiceTimeout'
schemes:
- http
summary: Delete Tag Collection in database
tags:
- tags
get:
consumes:
- application/json
description: "This API call is used to retrieve a list of inventory tags. <br><br>\n\n+
Search by epc: To search by epc, you would use the filter query parameter
like so: /inventory/tags?$filter=(epc eq 'example')\n\ninventory/tags\ninventory/tags?$top=10&$select=epc,tid
\ - Useful for paging data. Grab the top 10 records and only pull back the
epc and tid fields\ninventory/tags?$count - Shows how many records are in
the database\ninventory/tags?$filter=(epc eq 'example') and (tid ne '1000030404')
- Filters on a particular epc whose tid does not match the one specified\ninventory/tags?$filter=startswith(epc,'100')
or endswith(epc,'003') or contains(epc,'2') - Allows you to filter based on
only certain portions of an epc\n\nExample of one object being returned:<br><br>\n```\n{\n\"results\":[\n{\n\"arrived\":
1501863300375,\n\"encode_format\": \"tbd\",\n\"epc\": \"30143639F84191AD22900204\",\n\"epc_state\":
\"\",\n\"event\": \"cycle_count\",\n\"facility_id\": \"\",\n\"fixed\": 1,\n\"gtin\":
\"00888446671424\",\n\"company_prefix\": 36232,\n\"item_filter\": 3,\n\"handheld\":
1,\n\"last_read\": 1501863300375,\n\"location_history\": [\n{\n\"location\":
\"RSP-95bd71\",\n\"source\": \"fixed\",\n\"timestamp\": 1501863300375\n}\n],\n\"qualified_state\":
\"unknown\",\n\"source\": \"fixed\",\n\"tid\": \"\",\n\"ttl\": 1503704119\n}\n]\n}\n```\n\n+
arrived \t\t- Arrival time in milliseconds epoch\n+ encode_format \t- TBD\n+
epc \t\t\t- SGTIN EPC code\n+ epc_state \t\t- Current state of tag, either
'present' or 'departed'\n+ event \t\t\t- Last event recorded for tag\n+ facility_id
\t- Facility ID\n+ fixed \t\t\t- Count of how many times tag was read by fixed\n+
gtin \t\t\t- GTIN-14 decoded from EPC\n+ company_prefix \t- Part of EPC assigned
by GS1\n+ item_filter \t- Part of EPC, denotes packaging level of the item\n+
handheld \t\t- Count of how many times tag was read by handheld\n+ last_read
\t\t- Tag last read Time in milliseconds epoch\n+ location_history - Array
of objects showing tag history\n+ location \t- Location of tag at below time\n+
\ source \t- Where tags were read from (fixed or handheld)\n+ timestamp \t-
Time in milliseconds epoch\n+ qualified_state - Customer defined state\n+
source \t\t\t- Where tags were read from (fixed or handheld)\n+ tid \t\t\t-
Tag manufacturer ID\n+ ttl \t\t\t- Time to live, used for db purging - always
in sync with last read"
operationId: getTags
produces:
- application/json
responses:
"200":
description: resultsResponse
schema:
$ref: '#/definitions/resultsResponse'
"400":
$ref: '#/responses/schemaValidation'
"500":
$ref: '#/responses/internalError'
schemes:
- http
summary: Retrieves Tag Data
tags:
- tags
/inventory/update/coefficients:
put:
consumes:
- application/json
description: |-
This API call is used to update probabilistic algorithm coefficients for a particular facility. Coefficient variables are used to calculate the confidence of a tag. Default values are set as configuration variables.<br><br>
Example Request Input:
```
{
"dailyinventorypercentage": 0.01,
"probexiterror": 0.1,
"probinstoreread": 0.75,
"probunreadtoread": 0.2,
"facility_id": "Facility"
}
```
+ dailyinventorypercentage - Percent of inventory that is sold daily
+ probexiterror - Probability of an exit error (missed 'departed' event) occurring
+ probinstoreread - Probability of a tag in the store being read by the overhead sensor each day
+ probunreadtoread - Probability of an unreadable tag becoming readable again each day (i.e. moved or retagged)
+ facility_id - Facility name
operationId: updateCoefficients
produces:
- application/json
responses:
"200":
description: resultsResponse
schema:
$ref: '#/definitions/resultsResponse'
"400":
$ref: '#/responses/schemaValidation'
"500":
$ref: '#/responses/internalError'
schemes:
- http
summary: Update Facility Coefficents
tags:
- update
/inventory/update/epccontext:
delete:
consumes:
- application/json
description: |-
This endpoint allows the customer to delete the context for a particular EPC. Body parameters shall be provided in request body in JSON format.<br><br>
Example Request Input:
```
{
"epc":"3038E511C6E9A6400012D687",
"facility_id":"store100"
}
```
+ epc - SGTIN-96 EPC
+ facility_id - Facility code or identifier
operationId: deleteEpcContext
produces:
- application/json
responses:
"200":
description: resultsResponse
schema:
$ref: '#/definitions/resultsResponse'
"400":
$ref: '#/responses/schemaValidation'
"403":
$ref: '#/responses/forbidden'
"500":
$ref: '#/responses/internalError'
"502":
$ref: '#/responses/externalError'
"503":
$ref: '#/responses/serviceUnavailable'
"504":
$ref: '#/responses/externalServiceTimeout'
schemes:
- http
summary: Delete EPC context
tags:
- epc
put:
consumes:
- application/json
description: |-
This endpoint allows the customer to arbitrarily set the context for a particular EPC. For example, the customer may want to mark the tag as received, sold, lost, stolen, and anything else the customer decides is appropriate. Body parameters shall be provided in request body in JSON format.<br><br>
Example Request Input:
```
{
"epc_context":"received",
"epc":"3038E511C6E9A6400012D687",
"facility_id":"store555"
}
```
+ epc_context - User-defined context
+ facility_id - Facility code or identifier
+ epc - SGTIN-96 EPC
operationId: setEpcContext
produces:
- application/json
responses:
"200":
description: resultsResponse
schema:
$ref: '#/definitions/resultsResponse'
"400":
$ref: '#/responses/schemaValidation'
"403":
$ref: '#/responses/forbidden'
"500":
$ref: '#/responses/internalError'
"502":
$ref: '#/responses/externalError'
"503":
$ref: '#/responses/serviceUnavailable'
"504":
$ref: '#/responses/externalServiceTimeout'
schemes:
- http
summary: Set EPC context
tags:
- epc
/inventory/update/qualifiedstate:
put:
consumes:
- application/json
description: |-
The update endpoint is for uploading inventory events such as those from a handheld RFID reader.<br><br>
Example Request Input:
```
{
"qualified_state":"string",
"epc":"string",
"facility_id":"string"
}
```
+ qualified_state - User-defined state
+ epc - SGTIN-96 EPC
+ facility_id - Facility code or identifier
operationId: updateQualifiedState
produces:
- application/json
responses:
"200":
description: resultsResponse
schema:
$ref: '#/definitions/resultsResponse'
"400":
$ref: '#/responses/schemaValidation'
"403":
$ref: '#/responses/forbidden'
"500":
$ref: '#/responses/internalError'
"502":
$ref: '#/responses/externalError'
"503":
$ref: '#/responses/serviceUnavailable'
"504":
$ref: '#/responses/externalServiceTimeout'
schemes:
- http
summary: Upload inventory events
tags:
- update
produces:
- application/json
responses:
externalError:
description: External Error
externalServiceTimeout:
description: External Service Timeout
forbidden:
description: Forbidden
internalError:
description: Internal Error
schemaValidation:
description: ErrorList provides a collection of errors for processing
schema:
items:
$ref: '#/definitions/ErrReport'
type: array
serviceUnavailable:
description: Service Unavailable
schemes:
- http
swagger: "2.0"