File tree Expand file tree Collapse file tree 2 files changed +83
-56
lines changed Expand file tree Collapse file tree 2 files changed +83
-56
lines changed Original file line number Diff line number Diff line change 11{
2- "custom" : {
3- "documentation" : {
4- "title" : " test-service" ,
5- "models" : [
6- {
7- "name" : " SuccessResponse" ,
8- "description" : " Success response" ,
9- "content" : {
10- "application/json" : {
11- "schema" : {
12- "$schema" : " http://json-schema.org/draft-04/schema#" ,
13- "properties" : {
14- "SomeObject" : {
15- "type" : " object" ,
16- "properties" : {
17- "SomeAttribute" : {
18- "type" : " string"
19- }
20- }
21- }
22- }
23- }
24- }
2+ "custom" : {
3+ "documentation" : {
4+ "title" : " test-service" ,
5+ "models" : [
6+ {
7+ "name" : " SuccessResponse" ,
8+ "description" : " Success response" ,
9+ "content" : {
10+ "application/json" : {
11+ "schema" : {
12+ "$schema" : " http://json-schema.org/draft-04/schema#" ,
13+ "type" : " object" ,
14+ "properties" : {
15+ "SomeObject" : {
16+ "type" : " object" ,
17+ "properties" : {
18+ "SomeAttribute" : {
19+ "type" : " string"
20+ }
2521 }
22+ }
2623 }
27- ]
24+ }
25+ }
26+ }
27+ },
28+ {
29+ "name" : " ErrorResponse" ,
30+ "description" : " Error response" ,
31+ "content" : {
32+ "application/json" : {
33+ "schema" : {
34+ "$schema" : " http://json-schema.org/draft-04/schema#" ,
35+ "type" : " object" ,
36+ "properties" : {
37+ "error" : {
38+ "type" : " string"
39+ }
40+ }
41+ }
42+ }
43+ }
2844 }
45+ ]
2946 }
47+ }
3048}
Original file line number Diff line number Diff line change 11{
2- "createUser" : {
3- "name" : " createUser" ,
4- "handler" : " handler.create" ,
5- "events" : [
6- {
7- "http" : {
8- "path" : " find/{name}" ,
9- "method" : " get" ,
10- "documentation" : {
11- "pathParams" : [
12- {
13- "name" : " name" ,
14- "schema" : {
15- "type" : " string"
16- }
17- }
18- ],
19- "methodResponses" : [
20- {
21- "statusCode" : 200 ,
22- "responseBody" : {
23- "description" : " A user object along with generated API Keys"
24- },
25- "responseModels" : {
26- "application/json" : " SuccessResponse"
27- }
28- }
29- ]
30- }
2+ "createUser" : {
3+ "name" : " createUser" ,
4+ "handler" : " handler.create" ,
5+ "events" : [
6+ {
7+ "http" : {
8+ "path" : " find/{name}" ,
9+ "method" : " get" ,
10+ "documentation" : {
11+ "pathParams" : [
12+ {
13+ "name" : " name" ,
14+ "schema" : {
15+ "type" : " string"
3116 }
32- }
33- ]
34- }
17+ }
18+ ],
19+ "methodResponses" : [
20+ {
21+ "statusCode" : 200 ,
22+ "responseBody" : {
23+ "description" : " A user object along with generated API Keys"
24+ },
25+ "responseModels" : {
26+ "application/json" : " SuccessResponse"
27+ }
28+ },
29+ {
30+ "statusCode" : 400 ,
31+ "responseBody" : {
32+ "description" : " An Error"
33+ },
34+ "responseModels" : {
35+ "application/json" : " ErrorResponse"
36+ }
37+ }
38+ ]
39+ }
40+ }
41+ }
42+ ]
43+ }
3544}
You can’t perform that action at this time.
0 commit comments