1
+ {
2
+ "uuid" : " 4135677b-dd05-4308-a291-a4379966c44c" ,
3
+ "lastMigration" : 33 ,
4
+ "name" : " Validate requests payload json schema" ,
5
+ "endpointPrefix" : " " ,
6
+ "latency" : 0 ,
7
+ "port" : 3004 ,
8
+ "hostname" : " " ,
9
+ "folders" : [],
10
+ "routes" : [
11
+ {
12
+ "uuid" : " 2578466f-ce35-41bf-a8b4-56a6f156c1ad" ,
13
+ "type" : " http" ,
14
+ "documentation" : " " ,
15
+ "method" : " post" ,
16
+ "endpoint" : " signup" ,
17
+ "responses" : [
18
+ {
19
+ "uuid" : " d6db2433-b66d-4876-8f2c-3831e89cfc0a" ,
20
+ "body" : " {\r\n \" error\" : \" Invalid payload\"\r\n }" ,
21
+ "latency" : 0 ,
22
+ "statusCode" : 400 ,
23
+ "label" : " " ,
24
+ "headers" : [],
25
+ "bodyType" : " INLINE" ,
26
+ "filePath" : " " ,
27
+ "databucketID" : " " ,
28
+ "sendFileAsBody" : false ,
29
+ "rules" : [],
30
+ "rulesOperator" : " OR" ,
31
+ "disableTemplating" : false ,
32
+ "fallbackTo404" : false ,
33
+ "default" : true ,
34
+ "crudKey" : " id" ,
35
+ "callbacks" : []
36
+ },
37
+ {
38
+ "uuid" : " cfbebdf6-00ba-4db9-9b51-b04a6293f19f" ,
39
+ "body" : " {\r\n \" message\" : \" User registered successfully\"\r\n }" ,
40
+ "latency" : 0 ,
41
+ "statusCode" : 201 ,
42
+ "label" : " " ,
43
+ "headers" : [],
44
+ "bodyType" : " INLINE" ,
45
+ "filePath" : " " ,
46
+ "databucketID" : " " ,
47
+ "sendFileAsBody" : false ,
48
+ "rules" : [
49
+ {
50
+ "target" : " body" ,
51
+ "modifier" : " " ,
52
+ "value" : " sign_up" ,
53
+ "invert" : false ,
54
+ "operator" : " valid_json_schema"
55
+ }
56
+ ],
57
+ "rulesOperator" : " OR" ,
58
+ "disableTemplating" : false ,
59
+ "fallbackTo404" : false ,
60
+ "default" : false ,
61
+ "crudKey" : " id" ,
62
+ "callbacks" : []
63
+ }
64
+ ],
65
+ "responseMode" : null ,
66
+ "streamingMode" : null ,
67
+ "streamingInterval" : 0
68
+ }
69
+ ],
70
+ "rootChildren" : [
71
+ {
72
+ "type" : " route" ,
73
+ "uuid" : " 2578466f-ce35-41bf-a8b4-56a6f156c1ad"
74
+ }
75
+ ],
76
+ "proxyMode" : false ,
77
+ "proxyHost" : " " ,
78
+ "proxyRemovePrefix" : false ,
79
+ "tlsOptions" : {
80
+ "enabled" : false ,
81
+ "type" : " CERT" ,
82
+ "pfxPath" : " " ,
83
+ "certPath" : " " ,
84
+ "keyPath" : " " ,
85
+ "caPath" : " " ,
86
+ "passphrase" : " "
87
+ },
88
+ "cors" : true ,
89
+ "headers" : [
90
+ {
91
+ "key" : " Content-Type" ,
92
+ "value" : " application/json"
93
+ },
94
+ {
95
+ "key" : " Access-Control-Allow-Origin" ,
96
+ "value" : " *"
97
+ },
98
+ {
99
+ "key" : " Access-Control-Allow-Methods" ,
100
+ "value" : " GET,POST,PUT,PATCH,DELETE,HEAD,OPTIONS"
101
+ },
102
+ {
103
+ "key" : " Access-Control-Allow-Headers" ,
104
+ "value" : " Content-Type, Origin, Accept, Authorization, Content-Length, X-Requested-With"
105
+ }
106
+ ],
107
+ "proxyReqHeaders" : [
108
+ {
109
+ "key" : " " ,
110
+ "value" : " "
111
+ }
112
+ ],
113
+ "proxyResHeaders" : [
114
+ {
115
+ "key" : " " ,
116
+ "value" : " "
117
+ }
118
+ ],
119
+ "data" : [
120
+ {
121
+ "uuid" : " 9d6fb5ea-0325-4456-905a-9deee405b1e1" ,
122
+ "id" : " jjsk" ,
123
+ "name" : " sign_up" ,
124
+ "documentation" : " Data bucket storing the sign up JSON schema" ,
125
+ "value" : " {\n \" type\" : \" object\" ,\n \" properties\" : {\n \" username\" : {\n \" type\" : \" string\"\n },\n \" email\" : {\n \" type\" : \" string\" ,\n \" format\" : \" email\"\n },\n \" password\" : {\n \" type\" : \" string\" ,\n \" minLength\" : 6\n }\n },\n \" required\" : [\" username\" , \" email\" , \" password\" ]\n }"
126
+ }
127
+ ],
128
+ "callbacks" : []
129
+ }
0 commit comments