diff --git a/tests/Generator/Markup/resource/client.md b/tests/Generator/Markup/resource/client.md index 00fa1e2..defdb49 100644 --- a/tests/Generator/Markup/resource/client.md +++ b/tests/Generator/Markup/resource/client.md @@ -2,7 +2,7 @@ const client = new Client() client.get(name: string, type: string, startIndex: number, float: number, boolean: boolean, date: string, datetime: string): EntryCollection client.create(name: string, type: string, payload: EntryCreate): EntryMessage throws EntryMessage client.update(name: string, type: string, payload: EntryUpdate): EntryMessage -client.delete(name: string, type: string): EntryMessage +client.delete(name: string, type: string): void client.patch(name: string, type: string, payload: EntryPatch): EntryMessage diff --git a/tests/Generator/Markup/resource/html.htm b/tests/Generator/Markup/resource/html.htm index 64386cd..167f0ff 100644 --- a/tests/Generator/Markup/resource/html.htm +++ b/tests/Generator/Markup/resource/html.htm @@ -1,7 +1,7 @@

get

GET /foo/:name/:type
Returns a collection

Request

NameTypeLocation
nameStringpath
typeStringpath
startIndexIntegerquery
floatNumberquery
booleanBooleanquery
dateDatequery
datetimeDateTimequery

Response

Status-CodeType
200EntryCollection

create

POST /foo/:name/:type

Request

NameTypeLocation
nameStringpath
typeStringpath
payloadEntryCreatebody

Response

Status-CodeType
201EntryMessage
400EntryMessage
500EntryMessage

update

PUT /foo/:name/:type

Request

NameTypeLocation
nameStringpath
typeStringpath
payloadEntryUpdatebody

Response

Status-CodeType
200EntryMessage
-

delete

DELETE /foo/:name/:type

Request

NameTypeLocation
nameStringpath
typeStringpath

Response

Status-CodeType
200EntryMessage
+

delete

DELETE /foo/:name/:type

Request

NameTypeLocation
nameStringpath
typeStringpath

Response

Status-CodeType

patch

PATCH /foo/:name/:type

Request

NameTypeLocation
nameStringpath
typeStringpath
payloadEntryPatchbody

Response

Status-CodeType
200EntryMessage

EntryCollection

{
diff --git a/tests/Generator/Markup/resource/markdown.md b/tests/Generator/Markup/resource/markdown.md
index dd60c70..d640f57 100644
--- a/tests/Generator/Markup/resource/markdown.md
+++ b/tests/Generator/Markup/resource/markdown.md
@@ -45,7 +45,7 @@
 
 ## Response
 
-
Status-CodeType
200EntryMessage
+
Status-CodeType
# patch `PATCH /foo/:name/:type` diff --git a/tests/Generator/Spec/resource/openapi.json b/tests/Generator/Spec/resource/openapi.json index 660d7c9..44ee1c0 100644 --- a/tests/Generator/Spec/resource/openapi.json +++ b/tests/Generator/Spec/resource/openapi.json @@ -155,7 +155,7 @@ } }, "responses": { - "200": { + "204": { "description": "", "content": { "application/json": { diff --git a/tests/Generator/Spec/resource/typeapi.json b/tests/Generator/Spec/resource/typeapi.json index b0b3bc0..46d89fb 100644 --- a/tests/Generator/Spec/resource/typeapi.json +++ b/tests/Generator/Spec/resource/typeapi.json @@ -4,7 +4,7 @@ }, "operations": { "get": { - "path": "\/foo\/:name\/:type", + "path": "/foo/:name/:type", "method": "GET", "return": { "code": 200, @@ -77,7 +77,7 @@ "tags": [] }, "create": { - "path": "\/foo\/:name\/:type", + "path": "/foo/:name/:type", "method": "POST", "return": { "code": 201, @@ -126,7 +126,7 @@ "tags": [] }, "update": { - "path": "\/foo\/:name\/:type", + "path": "/foo/:name/:type", "method": "PUT", "return": { "code": 200, @@ -162,10 +162,10 @@ "tags": [] }, "delete": { - "path": "\/foo\/:name\/:type", + "path": "/foo/:name/:type", "method": "DELETE", "return": { - "code": 200, + "code": 204, "schema": { "$ref": "EntryMessage" } @@ -198,7 +198,7 @@ "tags": [] }, "patch": { - "path": "\/foo\/:name\/:type", + "path": "/foo/:name/:type", "method": "PATCH", "return": { "code": 200,