-
Notifications
You must be signed in to change notification settings - Fork 2
/
CustomerAPI.yaml
67 lines (67 loc) · 1.76 KB
/
CustomerAPI.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
openapi: 3.0.1
info:
title: Customer API
termsOfService: https://www.little.bz/ke/tnc.php
contact:
email: [email protected]
version: 1.0.0
servers:
- url: https://customers.little.bz/api/v1
paths:
/customers:
post:
tags:
- Create Customers
summary: It will create customers
description: You are able to create customer with this endpoint.
parameters:
- name: id
required: false
in: query
schema:
type: integer
minimum: 10
maximum: 100
exclusiveMinimum: true
exclusiveMaximum: true
format: int32
- name: name
in: query
required: true
schema:
type: string
nullable: true
example: Ali
requestBody:
content:
multipart/form-data:
schema:
required:
- kind
type: object
properties:
customerProfile:
type: string
format: base64
customerCover:
type: string
format: binary
required: false
responses:
'201':
description: Created
headers:
Content-Type:
description: The Content-Type of the response
schema:
type: string
TestHeader:
description: The number of allowed requests in the current period
schema:
type: integer
content:
text/plain:
schema:
type: string
enum:
- v1