Repository navigation
Expand file tree
/
Copy pathopenapi.yaml
More file actions
111 lines (110 loc) · 2.68 KB
/
Copy pathopenapi.yaml
File metadata and controls
111 lines (110 loc) · 2.68 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
100
101
102
103
104
105
106
107
108
109
110
111
openapi: 3.0.0
info:
title: Fastify High-Performance Microservice Engine
version: 1.0.0
description: Schema-First REST API Contracts for Fastify E-Commerce and Gateway
paths:
/v1/orders/{orderId}:
get:
summary: Retrieve order details
parameters:
- name: orderId
in: path
required: true
schema:
type: string
responses:
'200':
description: Order details
content:
application/json:
schema:
$ref: '#/components/schemas/OrderRecord'
/v1/payments/verify:
post:
summary: Verify payment intent
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- paymentId
properties:
paymentId:
type: string
responses:
'200':
description: Verification result
content:
application/json:
schema:
type: object
properties:
verified:
type: boolean
/v1/users/me:
get:
summary: Retrieve current user identity
responses:
'200':
description: User identity
content:
application/json:
schema:
type: object
required:
- id
- username
properties:
id:
type: string
username:
type: string
legacyToken:
type: string
nullable: true
authToken:
type: string
/v1/metrics:
get:
summary: Health and operational metrics
responses:
'200':
description: Service telemetry
content:
application/json:
schema:
type: object
properties:
status:
type: string
latencyMs:
type: number
debugHost:
type: string
components:
schemas:
OrderRecord:
type: object
required:
- id
- totalAmountCents
- status
properties:
id:
type: string
totalAmountCents:
type: integer
status:
type: string
billingAddress:
type: object
properties:
street:
type: string
city:
type: string
postalCode:
type: string