-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
39 lines (39 loc) · 919 Bytes
/
openapi.yaml
File metadata and controls
39 lines (39 loc) · 919 Bytes
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
openapi: 3.0.3
info:
title: Booking API
version: 1.0.0
paths:
/health:
get:
summary: Health check
responses:
'200':
description: OK
/api/bookings/reserve:
post:
summary: Reserve a seat
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [event_id, user_id]
properties:
event_id:
type: integer
example: 1
user_id:
type: string
example: user123
responses:
'201':
description: Booking created
'400':
description: Invalid payload
'404':
description: Event not found
'409':
description: Duplicate booking or sold out
'500':
description: Internal error