-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdynamoDB-API-collection.json
205 lines (205 loc) · 13.4 KB
/
dynamoDB-API-collection.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
{
"_type": "export",
"__export_format": 4,
"__export_date": "2022-12-31T04:08:56.003Z",
"__export_source": "insomnia.desktop.app:v2022.4.0",
"resources": [
{
"_id": "saveEmployeeUsingPOST",
"parentId": "fld_wrk_c931602761904a8ea01f8b898171cdb1159e3f15",
"modified": 1672459560798,
"created": 1672459500288,
"url": "{{ base_url }}/v1/employees",
"name": "Saves a new employee",
"description": "Saves a new employee in dynamoDB",
"method": "POST",
"body": {
"mimeType": "application/json",
"text": "{\n \"department\": {\n \"departmentCode\": \"string\",\n \"departmentName\": \"string\"\n },\n \"email\": \"string\",\n \"employeeId\": \"string\",\n \"firstName\": \"string\",\n \"lastName\": \"string\"\n}"
},
"parameters": [],
"headers": [
{
"name": "Content-Type",
"disabled": false,
"value": "application/json",
"id": "pair_cf06746419604309931959a9713f813a"
}
],
"authentication": {},
"metaSortKey": -1672459500288,
"isPrivate": false,
"settingStoreCookies": true,
"settingSendCookies": true,
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingRebuildPath": true,
"settingFollowRedirects": "global",
"_type": "request"
},
{
"_id": "fld_wrk_c931602761904a8ea01f8b898171cdb1159e3f15",
"parentId": "wrk_c931602761904a8ea01f8b898171cdb1",
"modified": 1672459500290,
"created": 1672459500290,
"name": "employee-controller",
"description": "Employee Controller",
"environment": {},
"environmentPropertyOrder": null,
"metaSortKey": -1672459500290,
"_type": "request_group"
},
{
"_id": "wrk_c931602761904a8ea01f8b898171cdb1",
"parentId": null,
"modified": 1671994689595,
"created": 1671994689595,
"name": "DynamoDB API",
"description": "",
"scope": "design",
"_type": "workspace"
},
{
"_id": "getEmployeeUsingGET",
"parentId": "fld_wrk_c931602761904a8ea01f8b898171cdb1159e3f15",
"modified": 1672459500286,
"created": 1672459500286,
"url": "{{ base_url }}/v1/employees/{{ id }}",
"name": "Get data of specific employee",
"description": "Get data of specific employee in dynamoDB",
"method": "GET",
"body": {},
"parameters": [],
"headers": [],
"authentication": {},
"metaSortKey": -1672459500286,
"isPrivate": false,
"settingStoreCookies": true,
"settingSendCookies": true,
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingRebuildPath": true,
"settingFollowRedirects": "global",
"_type": "request"
},
{
"_id": "updateEmployeeUsingPUT",
"parentId": "fld_wrk_c931602761904a8ea01f8b898171cdb1159e3f15",
"modified": 1672459552949,
"created": 1672459500285,
"url": "{{ base_url }}/v1/employees/{{ id }}",
"name": "Update data of specific employee",
"description": "Update data of specific employee in dynamoDB",
"method": "PUT",
"body": {
"mimeType": "application/json",
"text": "{\n \"department\": {\n \"departmentCode\": \"string\",\n \"departmentName\": \"string\"\n },\n \"email\": \"string\",\n \"employeeId\": \"string\",\n \"firstName\": \"string\",\n \"lastName\": \"string\"\n}"
},
"parameters": [],
"headers": [
{
"name": "Content-Type",
"disabled": false,
"value": "application/json",
"id": "pair_bde9a456187349bfa8e1078c90d8b58c"
}
],
"authentication": {},
"metaSortKey": -1672459500285,
"isPrivate": false,
"settingStoreCookies": true,
"settingSendCookies": true,
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingRebuildPath": true,
"settingFollowRedirects": "global",
"_type": "request"
},
{
"_id": "deleteEmployeeUsingDELETE",
"parentId": "fld_wrk_c931602761904a8ea01f8b898171cdb1159e3f15",
"modified": 1672459500282,
"created": 1672459500282,
"url": "{{ base_url }}/v1/employees/{{ id }}",
"name": "Deletes specific employee",
"description": "Deletes employee in dynamoDB",
"method": "DELETE",
"body": {},
"parameters": [],
"headers": [],
"authentication": {},
"metaSortKey": -1672459500282,
"isPrivate": false,
"settingStoreCookies": true,
"settingSendCookies": true,
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingRebuildPath": true,
"settingFollowRedirects": "global",
"_type": "request"
},
{
"_id": "env_e0f5e8bf471d3d3353b17beafb60e561e53ce8ad",
"parentId": "wrk_c931602761904a8ea01f8b898171cdb1",
"modified": 1672334300578,
"created": 1671994689609,
"name": "Base Environment",
"data": {
"base_url": "{{ scheme }}://{{ host }}"
},
"dataPropertyOrder": {
"&": [
"base_url"
]
},
"color": null,
"isPrivate": false,
"metaSortKey": 1671994689609,
"_type": "environment"
},
{
"_id": "jar_e0f5e8bf471d3d3353b17beafb60e561e53ce8ad",
"parentId": "wrk_c931602761904a8ea01f8b898171cdb1",
"modified": 1671994689611,
"created": 1671994689611,
"name": "Default Jar",
"cookies": [],
"_type": "cookie_jar"
},
{
"_id": "spc_7eb549f6830849f780bf9a11bd3d9d0c",
"parentId": "wrk_c931602761904a8ea01f8b898171cdb1",
"modified": 1672459503391,
"created": 1671994689602,
"fileName": "DynamoDB API",
"contents": "{\n \"swagger\": \"2.0\",\n \"info\": {\n \"description\": \"API using Spring Boot for dynamoDB testing\",\n \"version\": \"1.0.0\",\n \"title\": \"DynamoDB API\",\n \"license\": {\n \"name\": \"Apache License Version 2.0\",\n \"url\": \"https://www.apache.org/licenses/LICENSE-2.0\"\n }\n },\n \"host\": \"localhost:8080\",\n \"basePath\": \"/\",\n \"tags\": [\n {\n \"name\": \"employee-controller\",\n \"description\": \"Employee Controller\"\n }\n ],\n \"paths\": {\n \"/v1/employees\": {\n \"post\": {\n \"tags\": [\n \"employee-controller\"\n ],\n \"summary\": \"Saves a new employee\",\n \"description\": \"Saves a new employee in dynamoDB\",\n \"operationId\": \"saveEmployeeUsingPOST\",\n \"consumes\": [\n \"application/json\"\n ],\n \"produces\": [\n \"*/*\"\n ],\n \"parameters\": [\n {\n \"in\": \"body\",\n \"name\": \"employee\",\n \"description\": \"Form for creation of user\",\n \"required\": true,\n \"schema\": {\n \"$ref\": \"#/definitions/v1/employeesInput\"\n }\n }\n ],\n \"responses\": {\n \"200\": {\n \"description\": \"OK\",\n \"schema\": {\n \"$ref\": \"#/definitions/v1/employees\"\n }\n },\n \"201\": {\n \"description\": \"Created\"\n },\n \"401\": {\n \"description\": \"Unauthorized\"\n },\n \"403\": {\n \"description\": \"Forbidden\"\n },\n \"404\": {\n \"description\": \"Not Found\"\n }\n },\n \"deprecated\": false\n }\n },\n \"/v1/employees/{id}\": {\n \"get\": {\n \"tags\": [\n \"employee-controller\"\n ],\n \"summary\": \"Get data of specific employee\",\n \"description\": \"Get data of specific employee in dynamoDB\",\n \"operationId\": \"getEmployeeUsingGET\",\n \"produces\": [\n \"*/*\"\n ],\n \"parameters\": [\n {\n \"name\": \"id\",\n \"in\": \"path\",\n \"description\": \"Employee id\",\n \"required\": true,\n \"type\": \"string\"\n }\n ],\n \"responses\": {\n \"200\": {\n \"description\": \"OK\",\n \"schema\": {\n \"$ref\": \"#/definitions/v1/employeesDto\"\n }\n },\n \"401\": {\n \"description\": \"Unauthorized\"\n },\n \"403\": {\n \"description\": \"Forbidden\"\n },\n \"404\": {\n \"description\": \"Not Found\"\n }\n },\n \"deprecated\": false\n },\n \"put\": {\n \"tags\": [\n \"employee-controller\"\n ],\n \"summary\": \"Update data of specific employee\",\n \"description\": \"Update data of specific employee in dynamoDB\",\n \"operationId\": \"updateEmployeeUsingPUT\",\n \"consumes\": [\n \"application/json\"\n ],\n \"produces\": [\n \"*/*\"\n ],\n \"parameters\": [\n {\n \"in\": \"body\",\n \"name\": \"employee\",\n \"description\": \"Form to update user\",\n \"required\": true,\n \"schema\": {\n \"$ref\": \"#/definitions/v1/employeesInput\"\n }\n },\n {\n \"name\": \"id\",\n \"in\": \"path\",\n \"description\": \"Employee id\",\n \"required\": true,\n \"type\": \"string\"\n }\n ],\n \"responses\": {\n \"200\": {\n \"description\": \"OK\",\n \"schema\": {\n \"$ref\": \"#/definitions/v1/employeesDto\"\n }\n },\n \"201\": {\n \"description\": \"Created\"\n },\n \"401\": {\n \"description\": \"Unauthorized\"\n },\n \"403\": {\n \"description\": \"Forbidden\"\n },\n \"404\": {\n \"description\": \"Not Found\"\n }\n },\n \"deprecated\": false\n },\n \"delete\": {\n \"tags\": [\n \"employee-controller\"\n ],\n \"summary\": \"Deletes specific employee\",\n \"description\": \"Deletes employee in dynamoDB\",\n \"operationId\": \"deleteEmployeeUsingDELETE\",\n \"produces\": [\n \"*/*\"\n ],\n \"parameters\": [\n {\n \"name\": \"id\",\n \"in\": \"path\",\n \"description\": \"Employee id\",\n \"required\": true,\n \"type\": \"string\"\n }\n ],\n \"responses\": {\n \"200\": {\n \"description\": \"OK\"\n },\n \"204\": {\n \"description\": \"No Content\"\n },\n \"401\": {\n \"description\": \"Unauthorized\"\n },\n \"403\": {\n \"description\": \"Forbidden\"\n }\n },\n \"deprecated\": false\n }\n }\n },\n \"definitions\": {\n \"Department\": {\n \"type\": \"object\",\n \"properties\": {\n \"departmentCode\": {\n \"type\": \"string\"\n },\n \"departmentName\": {\n \"type\": \"string\"\n }\n },\n \"title\": \"Department\"\n },\n \"Employee\": {\n \"type\": \"object\",\n \"properties\": {\n \"department\": {\n \"$ref\": \"#/definitions/Department\"\n },\n \"email\": {\n \"type\": \"string\"\n },\n \"employeeId\": {\n \"type\": \"string\"\n },\n \"firstName\": {\n \"type\": \"string\"\n },\n \"lastName\": {\n \"type\": \"string\"\n }\n },\n \"title\": \"Employee\"\n },\n \"EmployeeDto\": {\n \"type\": \"object\",\n \"properties\": {\n \"departamentCode\": {\n \"type\": \"string\"\n },\n \"departamentName\": {\n \"type\": \"string\"\n },\n \"email\": {\n \"type\": \"string\"\n },\n \"firstName\": {\n \"type\": \"string\"\n },\n \"lastName\": {\n \"type\": \"string\"\n }\n },\n \"title\": \"EmployeeDto\"\n },\n \"EmployeeInput\": {\n \"type\": \"object\",\n \"properties\": {\n \"department\": {\n \"$ref\": \"#/definitions/Department\"\n },\n \"email\": {\n \"type\": \"string\"\n },\n \"employeeId\": {\n \"type\": \"string\"\n },\n \"firstName\": {\n \"type\": \"string\"\n },\n \"lastName\": {\n \"type\": \"string\"\n }\n },\n \"title\": \"EmployeeInput\"\n }\n }\n}",
"contentType": "yaml",
"_type": "api_spec"
},
{
"_id": "env_env_e0f5e8bf471d3d3353b17beafb60e561e53ce8ad_sub",
"parentId": "env_e0f5e8bf471d3d3353b17beafb60e561e53ce8ad",
"modified": 1672459508267,
"created": 1671994743472,
"name": "OpenAPI env",
"data": {
"scheme": [
"http"
],
"host": "localhost:8080",
"id": "a735b69d-d6e9-45af-a876-3f3a545ea612"
},
"dataPropertyOrder": {
"&": [
"scheme",
"host",
"id"
]
},
"color": null,
"isPrivate": false,
"metaSortKey": 1671994743472,
"_type": "environment"
}
]
}