-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
41 lines (41 loc) · 1.13 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
openapi: 3.0.3
info:
title: Twillio-test Service API
description: API for receiving messages and sending responses
version: 1.0.0
servers:
- url: http://localhost:5000
paths:
/hello:
get:
summary: Greeting endpoint
description: Returns a simple greeting message.
responses:
'200':
description: A greeting message
content:
text/plain:
schema:
type: string
example: 'Hello! Welcome!'
/message:
post:
summary: Respond to a message
description: Receives a message and sends a thank you response.
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
Body:
type: string
example: 'Hello'
responses:
'200':
description: Thank you response message
content:
text/plain:
schema:
type: string
example: 'Thank you for your message! A member of our team will be in touch with you soon.'