-
Notifications
You must be signed in to change notification settings - Fork 20
/
openapi.yaml
101 lines (98 loc) · 2.42 KB
/
openapi.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
openapi: 3.0.0
info:
contact:
name: Kong, Inc.
description: |
KongAir Customer Information service provides customer information
(payment methods, contact info, frequent flyer, etc...)
version: 0.1.0
title: Customer Information Service
servers:
- url: https://api.kong-air.com
description: KongAir API Server
paths:
/health:
get:
summary: Health check endpoint for Kubernetes
description: Endpoint that returns the service health status.
responses:
'200':
description: Service is healthy
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: "OK"
'500':
description: Service is unhealthy
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: "unhealthy"
"/customer":
get:
summary: Fetch a customers information
description: Fetch a customers information
tags:
- sales
- customer
operationId: get-cust-info
responses:
'200':
$ref: '#/components/responses/CustomerSingle'
'404':
description: Customer Not Found
components:
responses:
CustomerSingle:
description: A get action response for a single Customer
content:
application/json:
schema:
$ref: '#/components/schemas/Customer'
schemas:
PaymentMethod:
type: object
properties:
id:
type: string
redacted_card_number:
type: string
card_holder_name:
type: string
expiration-date:
type: string
CustomerInformation:
type: object
properties:
address:
type: string
phone_number:
type: string
email:
type: string
frequent_flier_number:
type: string
payment_methods:
type: array
items:
$ref: '#/components/schemas/PaymentMethod'
Customer:
type: object
properties:
id:
type: string
username:
type: string
name:
type: string
information:
$ref: '#/components/schemas/CustomerInformation'