forked from SLdragon/example-openapi-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest-body-is-not-object.json
More file actions
37 lines (37 loc) · 877 Bytes
/
request-body-is-not-object.json
File metadata and controls
37 lines (37 loc) · 877 Bytes
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
{
"openapi": "3.0.0",
"info": {
"title": "Repair Service",
"description": "A simple service to manage repairs for various items",
"version": "1.0.0"
},
"servers": [
{
"url": "https://piercerepairsapi.azurewebsites.net/"
}
],
"paths": {
"/repairs": {
"post": {
"operationId": "createRepair",
"summary": "Create a new repair",
"description": "Adds a new repair to the list with the given details and image URL",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"responses": {
"201": {
"description": "A successful response indicating that the repair was created"
}
}
}
}
}
}