1
- define ( { "api" : [
2
- {
3
- "type" : "post" ,
4
- "url" : "/api/authenticate" ,
5
- "title" : "" ,
6
- "version" : "0.3.0" ,
7
- "group" : "Authentication" ,
8
- "name" : "Authenticate" ,
9
- "parameter" : {
10
- "fields" : {
11
- "Credentials" : [
12
- {
13
- "group" : "Credentials" ,
14
- "type" : "<p>String</p> " ,
15
- "optional" : false ,
16
- "field" : "username" ,
17
- "description" : "<p>Username</p> "
18
- } ,
19
- {
20
- "group" : "Credentials" ,
21
- "type" : "<p>String</p> " ,
22
- "optional" : false ,
23
- "field" : "password" ,
24
- "description" : "<p>password</p> "
25
- }
26
- ]
27
- }
28
- } ,
29
- "filename" : "src/test_api.js" ,
30
- "groupTitle" : "Authentication" ,
31
- "error" : {
32
- "fields" : {
33
- "500 Internal Server Error" : [
34
- {
35
- "group" : "500 Internal Server Error" ,
36
- "optional" : false ,
37
- "field" : "InternalServerError" ,
38
- "description" : "<p>The server encountered an internal error</p> "
39
- }
40
- ]
41
- } ,
42
- "examples" : [
43
- {
44
- "title" : "500 Internal Server Error" ,
45
- "content" : "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}" ,
46
- "type" : "json"
47
- }
48
- ]
49
- }
50
- } ,
51
- {
52
- "type" : "get" ,
53
- "url" : "/api/subscriptioninfo" ,
54
- "title" : "" ,
55
- "version" : "0.3.0" ,
56
- "description" : "<p>Get the subscription information from an authenticated user.</p> " ,
57
- "group" : "Authentication" ,
58
- "name" : "GetSubscriptionInfo" ,
59
- "filename" : "src/test_api.js" ,
60
- "groupTitle" : "Authentication" ,
61
- "header" : {
62
- "fields" : {
63
- "Header" : [
64
- {
65
- "group" : "Header" ,
66
- "type" : "String" ,
67
- "optional" : false ,
68
- "field" : "Authorization" ,
69
- "description" : "<p>Auth header with JWT Token</p> "
70
- }
71
- ]
72
- } ,
73
- "examples" : [
74
- {
75
- "title" : "Authorization-Example:" ,
76
- "content" : "Authorization: Bearer <jwt-token>" ,
77
- "type" : "String"
78
- }
79
- ]
80
- } ,
81
- "error" : {
82
- "fields" : {
83
- "500 Internal Server Error" : [
84
- {
85
- "group" : "500 Internal Server Error" ,
86
- "optional" : false ,
87
- "field" : "InternalServerError" ,
88
- "description" : "<p>The server encountered an internal error</p> "
89
- }
90
- ]
91
- } ,
92
- "examples" : [
93
- {
94
- "title" : "500 Internal Server Error" ,
95
- "content" : "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}" ,
96
- "type" : "json"
97
- }
98
- ]
99
- }
100
- } ,
101
- {
102
- "type" : "get" ,
103
- "url" : "/api/subscriptioninfo/:userid" ,
104
- "title" : "" ,
105
- "version" : "0.2.0" ,
106
- "description" : "<p>Get the subscription information for a user.</p> " ,
107
- "parameter" : {
108
- "fields" : {
109
- "Parameter" : [
110
- {
111
- "group" : "Parameter" ,
112
- "type" : "<p>Number</p> " ,
113
- "optional" : false ,
114
- "field" : "userid" ,
115
- "description" : "<p>user id</p> "
116
- }
117
- ]
118
- }
119
- } ,
120
- "group" : "Authentication" ,
121
- "name" : "GetSubscriptionInfo" ,
122
- "filename" : "folder2/History.js" ,
123
- "groupTitle" : "Authentication" ,
124
- "error" : {
125
- "fields" : {
126
- "500 Internal Server Error" : [
127
- {
128
- "group" : "500 Internal Server Error" ,
129
- "optional" : false ,
130
- "field" : "InternalServerError" ,
131
- "description" : "<p>The server encountered an internal error</p> "
132
- }
133
- ]
134
- } ,
135
- "examples" : [
136
- {
137
- "title" : "500 Internal Server Error" ,
138
- "content" : "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}" ,
139
- "type" : "json"
140
- }
141
- ]
142
- }
143
- }
1
+ define ( { "api" : [
2
+ {
3
+ "type" : "post" ,
4
+ "url" : "/api/authenticate" ,
5
+ "title" : "" ,
6
+ "version" : "0.3.0" ,
7
+ "group" : "Authentication" ,
8
+ "name" : "Authenticate" ,
9
+ "parameter" : {
10
+ "fields" : {
11
+ "Credentials" : [
12
+ {
13
+ "group" : "Credentials" ,
14
+ "type" : "<p>String</p> " ,
15
+ "optional" : false ,
16
+ "field" : "username" ,
17
+ "description" : "<p>Username</p> "
18
+ } ,
19
+ {
20
+ "group" : "Credentials" ,
21
+ "type" : "<p>String</p> " ,
22
+ "optional" : false ,
23
+ "field" : "password" ,
24
+ "description" : "<p>password</p> "
25
+ }
26
+ ]
27
+ }
28
+ } ,
29
+ "filename" : "src/test_api.js" ,
30
+ "groupTitle" : "Authentication" ,
31
+ "error" : {
32
+ "fields" : {
33
+ "500 Internal Server Error" : [
34
+ {
35
+ "group" : "500 Internal Server Error" ,
36
+ "optional" : false ,
37
+ "field" : "InternalServerError" ,
38
+ "description" : "<p>The server encountered an internal error</p> "
39
+ }
40
+ ]
41
+ } ,
42
+ "examples" : [
43
+ {
44
+ "title" : "500 Internal Server Error" ,
45
+ "content" : "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}" ,
46
+ "type" : "json"
47
+ }
48
+ ]
49
+ }
50
+ } ,
51
+ {
52
+ "type" : "get" ,
53
+ "url" : "/api/subscriptioninfo" ,
54
+ "title" : "" ,
55
+ "version" : "0.3.0" ,
56
+ "description" : "<p>Get the subscription information from an authenticated user.</p> " ,
57
+ "group" : "Authentication" ,
58
+ "name" : "GetSubscriptionInfo" ,
59
+ "filename" : "src/test_api.js" ,
60
+ "groupTitle" : "Authentication" ,
61
+ "header" : {
62
+ "fields" : {
63
+ "Header" : [
64
+ {
65
+ "group" : "Header" ,
66
+ "type" : "String" ,
67
+ "optional" : false ,
68
+ "field" : "Authorization" ,
69
+ "description" : "<p>Auth header with JWT Token</p> "
70
+ }
71
+ ]
72
+ } ,
73
+ "examples" : [
74
+ {
75
+ "title" : "Authorization-Example:" ,
76
+ "content" : "Authorization: Bearer <jwt-token>" ,
77
+ "type" : "String"
78
+ }
79
+ ]
80
+ } ,
81
+ "error" : {
82
+ "fields" : {
83
+ "500 Internal Server Error" : [
84
+ {
85
+ "group" : "500 Internal Server Error" ,
86
+ "optional" : false ,
87
+ "field" : "InternalServerError" ,
88
+ "description" : "<p>The server encountered an internal error</p> "
89
+ }
90
+ ]
91
+ } ,
92
+ "examples" : [
93
+ {
94
+ "title" : "500 Internal Server Error" ,
95
+ "content" : "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}" ,
96
+ "type" : "json"
97
+ }
98
+ ]
99
+ }
100
+ } ,
101
+ {
102
+ "type" : "get" ,
103
+ "url" : "/api/subscriptioninfo/:userid" ,
104
+ "title" : "" ,
105
+ "version" : "0.2.0" ,
106
+ "description" : "<p>Get the subscription information for a user.</p> " ,
107
+ "parameter" : {
108
+ "fields" : {
109
+ "Parameter" : [
110
+ {
111
+ "group" : "Parameter" ,
112
+ "type" : "<p>Number</p> " ,
113
+ "optional" : false ,
114
+ "field" : "userid" ,
115
+ "description" : "<p>user id</p> "
116
+ }
117
+ ]
118
+ }
119
+ } ,
120
+ "group" : "Authentication" ,
121
+ "name" : "GetSubscriptionInfo" ,
122
+ "filename" : "folder2/History.js" ,
123
+ "groupTitle" : "Authentication" ,
124
+ "error" : {
125
+ "fields" : {
126
+ "500 Internal Server Error" : [
127
+ {
128
+ "group" : "500 Internal Server Error" ,
129
+ "optional" : false ,
130
+ "field" : "InternalServerError" ,
131
+ "description" : "<p>The server encountered an internal error</p> "
132
+ }
133
+ ]
134
+ } ,
135
+ "examples" : [
136
+ {
137
+ "title" : "500 Internal Server Error" ,
138
+ "content" : "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}" ,
139
+ "type" : "json"
140
+ }
141
+ ]
142
+ }
143
+ }
144
144
] } ) ;
0 commit comments