-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathebay_sender__v1.yml
More file actions
99 lines (98 loc) · 2.3 KB
/
ebay_sender__v1.yml
File metadata and controls
99 lines (98 loc) · 2.3 KB
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
openapi: 3.0.0
info:
version: "1"
title: EbaySender
servers:
- url: http://ebay-p-inventory/openapi/EbaySender/v1
- url: http://ebay-r-inventory/openapi/EbaySender/v1
- url: http://l.ebay-inventory/openapi/EbaySender/v1
- url: http://localhost:8001/openapi/EbaySender/v1
paths:
/sender/send:
post:
tags:
- Sender
summary: "Make a ebay request"
description: "Made a request to ebay with "
requestBody:
description: ""
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EbayPostRequest'
responses:
201:
description: One item
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
"500":
description: "Internal error"
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
EbaySenderRequest:
type: object
required:
- url
- type
properties:
url:
type: string
type:
type: string
body:
type: object
SuccessResponse:
type: object
properties:
data:
type: string
code:
type: integer
example: 200
ErrorResponse:
type: object
properties:
messages:
type: array
items:
$ref: '#/components/schemas/Message'
Message:
type: object
required:
- level
- text
properties:
level:
type: string
description: 'Message level (like in a logger)'
example: 'error'
text:
type: string
description: 'Message text'
example: 'Something wrong.'
context:
type: array
description: 'Message context (like in a logger)'
items:
type: string
EbayPostRequest:
type: object
required:
- requiredField
properties:
url:
type: string
example: /sell/inventory/v1/inventory_item/1113A
type:
type: string
example: GET
body:
type: object
example: {"prop1" : 1}