Skip to content

Commit 94e73e6

Browse files
Update apiDefinition.swagger.json as asked by MSFT (#2672)
Added response to the code
1 parent ec0a44c commit 94e73e6

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

certified-connectors/HTML To PDF By Pascalcase/apiDefinition.swagger.json

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,33 @@
2222
"paths": {
2323
"/": {
2424
"post": {
25-
"responses": {
26-
"default": {
27-
"description": "default",
28-
"schema": {}
29-
}
30-
},
25+
"responses": {
26+
"200": {
27+
"description": "OK",
28+
"schema": {
29+
"title": "body",
30+
"type":"string"
31+
}
32+
},
33+
"400": {
34+
"description": "Bad Request"
35+
},
36+
"404": {
37+
"description": "Not Found"
38+
},
39+
"401": {
40+
"description": "Unauthorized"
41+
},
42+
"403": {
43+
"description": "Forbidden"
44+
},
45+
"500": {
46+
"description": "Internal Server Error. Unknown error occurred"
47+
},
48+
"default": {
49+
"description": "Operation Failed."
50+
}
51+
},
3152
"summary": "Convert HTML To PDF Pascalcase",
3253
"description": "Converts HTML to PDF of more than 2mb",
3354
"operationId": "ConvertHTMLToPDF",
@@ -87,4 +108,4 @@
87108
"securityDefinitions": {},
88109
"security": [],
89110
"tags": []
90-
}
111+
}

0 commit comments

Comments
 (0)