@@ -91,11 +91,11 @@ Returns a list of requests with pagination and filtering options.
91
91
- Filtering options are available using parameters like `requestedBy`,`type`, and `state`.
92
92
- The response includes a list of request objects with their respective properties.
93
93
94
- ### Authentication and Authorization:
94
+ #### Authentication and Authorization:
95
95
96
96
- Authentication is required for accessing this endpoint.
97
97
98
- ### Additional Notes:
98
+ #### Additional Notes:
99
99
100
100
- The provided response includes details of each request, such as ID, timestamps, requester, type, message, state, etc.
101
101
- Pagination functionality is implemented using `next` and `prev` parameters in the response.
@@ -129,24 +129,51 @@ Creates a new request.
129
129
130
130
- Body Parameters:
131
131
132
- - `type`: Required string to specify the type of request (e.g., OOO).
132
+ - `type`: Required string to specify the type of request (e.g., OOO,EXTENSION,TASK ).
133
133
- `from`: Required number to specify the start timestamp of the request.
134
134
- `until`: Required number to specify the end timestamp of the request.
135
135
- `message`: Required string to specify the message for the request.
136
136
- `state`: Required string to specify the state of the request (e.g., PENDING).
137
137
138
- - Example:
138
+ - Example OOO Request :
139
139
```json
140
140
{
141
141
"type" : " OOO" ,
142
142
"from" : " <timestamp>" ,
143
143
"until" : " <timestamp>" ,
144
- "message" : " string" ,
144
+ "message" : " <Request Message>" ,
145
+ "state" : " PENDING"
146
+ }
147
+ ```
148
+ - Example EXTENSION Request:
149
+ ```json
150
+ {
151
+ "type" : " EXTENSION" ,
152
+ "taskId" : " <Task ID>" ,
153
+ "title" : " <Extension Title>" ,
154
+ "oldEndsOn" : " <timestamp>" ,
155
+ "newEndsOn" : " <timestamp>" ,
156
+ "message" : " <Extension Message>" ,
157
+ "state" : " PENDING"
158
+ }
159
+ ```
160
+ - Example TASK Request:
161
+ ```json
162
+ {
163
+ "type" : " TASK" ,
164
+ "externalIssueUrl" : " <GitHub Issue API URL>" ,
165
+ "externalIssueHtmlUrl" : " <GitHub Issue HTML URL>" ,
166
+ "requestType" : " CREATION | ASSIGNMENT" ,
167
+ "proposedStartDate" : " <timestamp>" ,
168
+ "proposedDeadline" : " <timestamp>" ,
169
+ "description" : " <Request Description>" ,
170
+ "markdownEnabled" : " false | true" ,
171
+ "userId" : " <RDS User ID>" ,
145
172
"state" : " PENDING"
146
173
}
147
174
```
148
175
149
- - **Success Response:**
176
+ - **Success Response of OOO Request :**
150
177
151
178
- **Code:** 200
152
179
- **Content:**
@@ -173,11 +200,11 @@ Creates a new request.
173
200
- **Code:** 500
174
201
- **Content:** `{ "statusCode": 500, "error": "Internal Server Error", "message": "An internal server error occurred" }`
175
202
176
- ### Authentication and Authorization:
203
+ #### Authentication and Authorization:
177
204
178
205
- Authentication is required for creating a new request.
179
206
180
- ### Additional Notes:
207
+ #### Additional Notes:
181
208
182
209
- The request body should contain the necessary details for creating a new request, including type, timestamps for from and until, message, and state.
183
210
- The state is set to "PENDING" by default.
@@ -248,11 +275,11 @@ Updates an existing request with the provided details.
248
275
- **Code:** 500
249
276
- **Content:** `{ "statusCode": 500, "error": "Internal Server Error", "message": "An internal server error occurred" }`
250
277
251
- ### Authentication and Authorization:
278
+ #### Authentication and Authorization:
252
279
253
280
- Authentication is required for accessing this endpoint.
254
281
255
- ### Additional Notes:
282
+ #### Additional Notes:
256
283
257
284
- The request body should contain the necessary details for updating an existing request, including type, reason, and state.
258
285
- Error handling is provided for cases where the request is already approved and for internal server errors.
0 commit comments