forked from amrebada/go-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.json
84 lines (84 loc) · 2.09 KB
/
swagger.json
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
{
"info": {
"title": "Obadas Framework",
"description": "Obadas Framework",
"version": "1.0.0",
"contact": {
"name": "Amr Abada",
"url": "amrebada.github.io",
"email": "amr.app.engine@gmail.com"
}
},
"openapi": "3.0.2",
"servers": [
{ "url": "http://localhost/api/templates", "description": "local_server" },
{
"url": "https://www.example-dev.com/api/templates",
"description": "dev_server"
},
{
"url": "https://www.example-stage.com/api/templates",
"description": "stage_server"
},
{
"url": "https://www.example-.com/api/templates",
"description": "prod_server"
}
],
"tags": [
{
"name": "User",
"description": "User Module for authentication and authorization"
}
],
"paths": {
"/v1/auth/:id": {
"get": {
"summary": "get user",
"description": "get user",
"operationId": "V1AuthGetId",
"parameters": [
{
"name": "id",
"in": "path",
"description": "path parameter id ",
"required": true,
"schema": { "type": "string" }
}
],
"responses": { "200": {} },
"requestBody": { "content": {} },
"tags": ["User"]
}
},
"/v1/auth/login": {
"get": {
"summary": "get token of user",
"description": "get token of user",
"operationId": "V1AuthGetLogin",
"responses": { "200": {} },
"requestBody": { "content": {} },
"tags": ["User"]
},
"post": {
"summary": "Login user",
"description": "Login user",
"operationId": "V1AuthPostLogin",
"responses": { "200": {} },
"requestBody": { "content": {} },
"tags": ["User"]
}
},
"/v1/auth/register": {
"post": {
"summary": "Register user",
"description": "Register user",
"operationId": "V1AuthPostRegister",
"responses": { "200": {} },
"requestBody": { "content": {} },
"tags": ["User"]
}
}
},
"components": {}
}