-
Notifications
You must be signed in to change notification settings - Fork 2
/
CustomerAPI31.yaml
82 lines (82 loc) · 2.11 KB
/
CustomerAPI31.yaml
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
openapi: 3.1.0
info:
title: Customer API
contact:
email: [email protected]
version: '1.0.0'
jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
servers:
- url: https://customers.little.bz/api/v1
variables: {}
paths:
/customers:
post:
tags:
- Create Customers
summary: It will create customers
description: You are able to create customer with this endpoint.
operationId: Itwillcreatecustomers
parameters:
- name: id
in: query
description: ''
style: form
explode: true
schema:
exclusiveMaximum: 100
exclusiveMinimum: 10
type: integer
contentEncoding: int32
- name: name
in: query
description: ''
required: true
style: form
explode: true
schema:
type:
- string
- 'null'
examples:
- Ali
requestBody:
content:
multipart/form-data:
encoding: {}
schema:
type: object
properties:
customerProfile:
type: string
contentEncoding: base64
customerCover:
type: string
contentEncoding: base64
contentMediaType: multipart/form-data
required: false
responses:
'201':
description: Created
headers:
TestHeader:
description: The number of allowed requests in the current period
content:
text/plain:
schema:
type: string
contentMediaType: text/plain
content:
text/plain:
schema:
$ref: '#/components/schemas/CustomersResponse'
deprecated: false
parameters: []
components:
schemas:
CustomersResponse:
title: CustomersResponse
const: v1
type: string
tags:
- name: Create Customers
description: ''