-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yml
47 lines (44 loc) · 1.46 KB
/
swagger.yml
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
openapi: 3.0.0
info:
description: Thorogh documentation of Laravel apis
version: "1.0.0"
title: Laravel API
paths:
/api/sample:
get:
description: |
sample api
responses:
200:
description: ok
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: a message specificlly for developers and not meant to be shown to end suers
nullable: true
example: action was done with tracking number $1111
user_message:
type: string
description: a message to display for end users
nullable: false
example: action was done successfully
success:
type: boolean
description: whether the action was done successfully or there were errors
nullable: false
code:
type: integer
description: a specific code
nullable: false
payload:
description: contains the actual data returned from the request
nullable: true
required:
- message
- user_message
- success
- payload