-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayment.yaml
More file actions
125 lines (123 loc) · 3.36 KB
/
payment.yaml
File metadata and controls
125 lines (123 loc) · 3.36 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
openapi: 3.0.4
info:
title: Payment API
description: API for processing payments and managing tickets for movies.
version: 0.1.9
servers:
- url: http://CinemasRUs.com/api
description: Cinema API server
paths:
/verify/{payment}:
get:
summary: Verify payment status
description: Check the status of a payment using the payment info.
parameters:
- name: payment
in: path
required: true
description: The info of the payment to verify.
schema:
type: string
responses:
'200':
description: Payment verified successfully.
content:
application/json:
schema:
type: string
'400':
description: Invalid payment info provided.
content:
application/json:
schema:
type: string
/pay/{payment}:
post:
summary: Process payment
description: Process a payment using the provided payment info.
parameters:
- name: payment
in: path
required: true
description: The info of the payment to process.
schema:
type: string
responses:
'200':
description: Payment processed successfully.
content:
application/json:
schema:
type: string
'400':
description: Invalid payment info provided.
content:
application/json:
schema:
type: string
/createTicket/{movieID}/{seatID}:
post:
summary: Create a ticket for a movie
description: Create a ticket for a specific movie and seat.
parameters:
- name: movieID
in: path
required: true
description: The ID of the movie.
schema:
type: string
- name: seatID
in: path
required: true
description: The ID of the seat.
schema:
type: string
responses:
'200':
description: Ticket created successfully.
content:
application/json:
schema:
type: string
'404':
description: Movie or seat not found.
content:
application/json:
schema:
type: string
/deleteSeat/{movieID}/{seatID}:
delete:
summary: Delete a seat for a movie
description: Delete a specific seat for a movie.
parameters:
- name: movieID
in: path
required: true
description: The ID of the movie.
schema:
type: string
- name: seatID
in: path
required: true
description: The ID of the seat.
schema:
type: string
responses:
'200':
description: Seat deleted successfully.
content:
application/json:
schema:
type: string
'404':
description: Movie or seat not found.
content:
application/json:
schema:
type: string
'400':
description: Invalid request.
content:
application/json:
schema:
type: string