From 605e28cb0af555961c5476ce370a0b8198983577 Mon Sep 17 00:00:00 2001 From: JasonTaylorDev Date: Fri, 29 Nov 2024 16:48:08 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Open=20API=20spec=20/=20cl?= =?UTF-8?q?ient=20generation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Web/ClientApp-React/src/web-api-client.ts | 170 ++++++------------ src/Web/ClientApp/src/app/web-api-client.ts | 113 ++---------- .../WebApplicationExtensions.cs | 3 +- src/Web/wwwroot/api/specification-webapi.json | 44 +---- src/Web/wwwroot/api/specification.json | 42 ----- 5 files changed, 79 insertions(+), 293 deletions(-) diff --git a/src/Web/ClientApp-React/src/web-api-client.ts b/src/Web/ClientApp-React/src/web-api-client.ts index 09cd1b070..ad34da85b 100644 --- a/src/Web/ClientApp-React/src/web-api-client.ts +++ b/src/Web/ClientApp-React/src/web-api-client.ts @@ -54,23 +54,20 @@ export class TodoItemsClient { let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); }; if (status === 200) { return response.text().then((_responseText) => { - let result200: any = null; - let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); - result200 = PaginatedListOfTodoItemBriefDto.fromJS(resultData200); - return result200; + let result200: any = null; + let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); + result200 = PaginatedListOfTodoItemBriefDto.fromJS(resultData200); + return result200; }); } else if (status !== 200 && status !== 204) { return response.text().then((_responseText) => { - return throwException("An unexpected server error occurred.", status, _responseText, _headers); + return throwException("An unexpected server error occurred.", status, _responseText, _headers); }); } return Promise.resolve(null as any); } - /** - * @return OK - */ - createTodoItem(command: CreateTodoItemCommand): Promise { + createTodoItem(command: CreateTodoItemCommand): Promise { let url_ = this.baseUrl + "/api/TodoItems"; url_ = url_.replace(/[?&]$/, ""); @@ -90,33 +87,26 @@ export class TodoItemsClient { }); } - protected processCreateTodoItem(response: Response): Promise { + protected processCreateTodoItem(response: Response): Promise { followIfLoginRedirect(response); const status = response.status; let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); }; - if (status === 200) { - return response.text().then((_responseText) => { - return null; - }); - } else if (status === 201) { + if (status === 201) { return response.text().then((_responseText) => { - let result201: any = null; - let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); + let result201: any = null; + let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); result201 = resultData201 !== undefined ? resultData201 : null; - - return throwException("A server side error occurred.", status, _responseText, _headers, result201); + + return result201; }); } else if (status !== 200 && status !== 204) { return response.text().then((_responseText) => { - return throwException("An unexpected server error occurred.", status, _responseText, _headers); + return throwException("An unexpected server error occurred.", status, _responseText, _headers); }); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } - /** - * @return OK - */ updateTodoItem(id: number, command: UpdateTodoItemCommand): Promise { let url_ = this.baseUrl + "/api/TodoItems/{id}"; if (id === undefined || id === null) @@ -131,7 +121,6 @@ export class TodoItemsClient { method: "PUT", headers: { "Content-Type": "application/json", - "Accept": "application/json" } }; @@ -144,29 +133,22 @@ export class TodoItemsClient { followIfLoginRedirect(response); const status = response.status; let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); }; - if (status === 200) { - return response.text().then((_responseText) => { - return null; - }); - } else if (status === 204) { + if (status === 204) { return response.text().then((_responseText) => { - return null; + return; }); } else if (status === 400) { return response.text().then((_responseText) => { - return throwException("A server side error occurred.", status, _responseText, _headers); + return throwException("A server side error occurred.", status, _responseText, _headers); }); } else if (status !== 200 && status !== 204) { return response.text().then((_responseText) => { - return throwException("An unexpected server error occurred.", status, _responseText, _headers); + return throwException("An unexpected server error occurred.", status, _responseText, _headers); }); } return Promise.resolve(null as any); } - /** - * @return OK - */ deleteTodoItem(id: number): Promise { let url_ = this.baseUrl + "/api/TodoItems/{id}"; if (id === undefined || id === null) @@ -177,7 +159,6 @@ export class TodoItemsClient { let options_: RequestInit = { method: "DELETE", headers: { - "Accept": "application/json" } }; @@ -190,25 +171,18 @@ export class TodoItemsClient { followIfLoginRedirect(response); const status = response.status; let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); }; - if (status === 200) { - return response.text().then((_responseText) => { - return null; - }); - } else if (status === 204) { + if (status === 204) { return response.text().then((_responseText) => { - return null; + return; }); } else if (status !== 200 && status !== 204) { return response.text().then((_responseText) => { - return throwException("An unexpected server error occurred.", status, _responseText, _headers); + return throwException("An unexpected server error occurred.", status, _responseText, _headers); }); } return Promise.resolve(null as any); } - /** - * @return OK - */ updateTodoItemDetail(id: number, command: UpdateTodoItemDetailCommand): Promise { let url_ = this.baseUrl + "/api/TodoItems/UpdateDetail/{id}"; if (id === undefined || id === null) @@ -223,7 +197,6 @@ export class TodoItemsClient { method: "PUT", headers: { "Content-Type": "application/json", - "Accept": "application/json" } }; @@ -236,21 +209,17 @@ export class TodoItemsClient { followIfLoginRedirect(response); const status = response.status; let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); }; - if (status === 200) { - return response.text().then((_responseText) => { - return null; - }); - } else if (status === 204) { + if (status === 204) { return response.text().then((_responseText) => { - return null; + return; }); } else if (status === 400) { return response.text().then((_responseText) => { - return throwException("A server side error occurred.", status, _responseText, _headers); + return throwException("A server side error occurred.", status, _responseText, _headers); }); } else if (status !== 200 && status !== 204) { return response.text().then((_responseText) => { - return throwException("An unexpected server error occurred.", status, _responseText, _headers); + return throwException("An unexpected server error occurred.", status, _responseText, _headers); }); } return Promise.resolve(null as any); @@ -289,23 +258,20 @@ export class TodoListsClient { let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); }; if (status === 200) { return response.text().then((_responseText) => { - let result200: any = null; - let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); - result200 = TodosVm.fromJS(resultData200); - return result200; + let result200: any = null; + let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); + result200 = TodosVm.fromJS(resultData200); + return result200; }); } else if (status !== 200 && status !== 204) { return response.text().then((_responseText) => { - return throwException("An unexpected server error occurred.", status, _responseText, _headers); + return throwException("An unexpected server error occurred.", status, _responseText, _headers); }); } return Promise.resolve(null as any); } - /** - * @return OK - */ - createTodoList(command: CreateTodoListCommand): Promise { + createTodoList(command: CreateTodoListCommand): Promise { let url_ = this.baseUrl + "/api/TodoLists"; url_ = url_.replace(/[?&]$/, ""); @@ -325,33 +291,26 @@ export class TodoListsClient { }); } - protected processCreateTodoList(response: Response): Promise { + protected processCreateTodoList(response: Response): Promise { followIfLoginRedirect(response); const status = response.status; let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); }; - if (status === 200) { - return response.text().then((_responseText) => { - return null; - }); - } else if (status === 201) { + if (status === 201) { return response.text().then((_responseText) => { - let result201: any = null; - let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); + let result201: any = null; + let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); result201 = resultData201 !== undefined ? resultData201 : null; - - return throwException("A server side error occurred.", status, _responseText, _headers, result201); + + return result201; }); } else if (status !== 200 && status !== 204) { return response.text().then((_responseText) => { - return throwException("An unexpected server error occurred.", status, _responseText, _headers); + return throwException("An unexpected server error occurred.", status, _responseText, _headers); }); } - return Promise.resolve(null as any); + return Promise.resolve(null as any); } - /** - * @return OK - */ updateTodoList(id: number, command: UpdateTodoListCommand): Promise { let url_ = this.baseUrl + "/api/TodoLists/{id}"; if (id === undefined || id === null) @@ -366,7 +325,6 @@ export class TodoListsClient { method: "PUT", headers: { "Content-Type": "application/json", - "Accept": "application/json" } }; @@ -379,29 +337,22 @@ export class TodoListsClient { followIfLoginRedirect(response); const status = response.status; let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); }; - if (status === 200) { + if (status === 204) { return response.text().then((_responseText) => { - return null; - }); - } else if (status === 204) { - return response.text().then((_responseText) => { - return null; + return; }); } else if (status === 400) { return response.text().then((_responseText) => { - return throwException("A server side error occurred.", status, _responseText, _headers); + return throwException("A server side error occurred.", status, _responseText, _headers); }); } else if (status !== 200 && status !== 204) { return response.text().then((_responseText) => { - return throwException("An unexpected server error occurred.", status, _responseText, _headers); + return throwException("An unexpected server error occurred.", status, _responseText, _headers); }); } return Promise.resolve(null as any); } - /** - * @return OK - */ deleteTodoList(id: number): Promise { let url_ = this.baseUrl + "/api/TodoLists/{id}"; if (id === undefined || id === null) @@ -412,7 +363,6 @@ export class TodoListsClient { let options_: RequestInit = { method: "DELETE", headers: { - "Accept": "application/json" } }; @@ -425,17 +375,13 @@ export class TodoListsClient { followIfLoginRedirect(response); const status = response.status; let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); }; - if (status === 200) { + if (status === 204) { return response.text().then((_responseText) => { - return null; - }); - } else if (status === 204) { - return response.text().then((_responseText) => { - return null; + return; }); } else if (status !== 200 && status !== 204) { return response.text().then((_responseText) => { - return throwException("An unexpected server error occurred.", status, _responseText, _headers); + return throwException("An unexpected server error occurred.", status, _responseText, _headers); }); } return Promise.resolve(null as any); @@ -474,21 +420,21 @@ export class WeatherForecastsClient { let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); }; if (status === 200) { return response.text().then((_responseText) => { - let result200: any = null; - let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); - if (Array.isArray(resultData200)) { - result200 = [] as any; - for (let item of resultData200) - result200!.push(WeatherForecast.fromJS(item)); - } - else { - result200 = null; - } - return result200; + let result200: any = null; + let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); + if (Array.isArray(resultData200)) { + result200 = [] as any; + for (let item of resultData200) + result200!.push(WeatherForecast.fromJS(item)); + } + else { + result200 = null; + } + return result200; }); } else if (status !== 200 && status !== 204) { return response.text().then((_responseText) => { - return throwException("An unexpected server error occurred.", status, _responseText, _headers); + return throwException("An unexpected server error occurred.", status, _responseText, _headers); }); } return Promise.resolve(null as any); diff --git a/src/Web/ClientApp/src/app/web-api-client.ts b/src/Web/ClientApp/src/app/web-api-client.ts index 1ca509e6c..8bd9a14e4 100644 --- a/src/Web/ClientApp/src/app/web-api-client.ts +++ b/src/Web/ClientApp/src/app/web-api-client.ts @@ -17,21 +17,9 @@ export const API_BASE_URL = new InjectionToken('API_BASE_URL'); export interface ITodoItemsClient { getTodoItemsWithPagination(listId: number, pageNumber: number, pageSize: number): Observable; - /** - * @return OK - */ - createTodoItem(command: CreateTodoItemCommand): Observable; - /** - * @return OK - */ + createTodoItem(command: CreateTodoItemCommand): Observable; updateTodoItem(id: number, command: UpdateTodoItemCommand): Observable; - /** - * @return OK - */ deleteTodoItem(id: number): Observable; - /** - * @return OK - */ updateTodoItemDetail(id: number, command: UpdateTodoItemDetailCommand): Observable; } @@ -108,10 +96,7 @@ export class TodoItemsClient implements ITodoItemsClient { return _observableOf(null as any); } - /** - * @return OK - */ - createTodoItem(command: CreateTodoItemCommand): Observable { + createTodoItem(command: CreateTodoItemCommand): Observable { let url_ = this.baseUrl + "/api/TodoItems"; url_ = url_.replace(/[?&]$/, ""); @@ -134,31 +119,27 @@ export class TodoItemsClient implements ITodoItemsClient { try { return this.processCreateTodoItem(response_ as any); } catch (e) { - return _observableThrow(e) as any as Observable; + return _observableThrow(e) as any as Observable; } } else - return _observableThrow(response_) as any as Observable; + return _observableThrow(response_) as any as Observable; })); } - protected processCreateTodoItem(response: HttpResponseBase): Observable { + protected processCreateTodoItem(response: HttpResponseBase): Observable { const status = response.status; const responseBlob = response instanceof HttpResponse ? response.body : (response as any).error instanceof Blob ? (response as any).error : undefined; let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }} - if (status === 200) { - return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { - return _observableOf(null as any); - })); - } else if (status === 201) { + if (status === 201) { return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { let result201: any = null; let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); result201 = resultData201 !== undefined ? resultData201 : null; - return throwException("A server side error occurred.", status, _responseText, _headers, result201); + return _observableOf(result201); })); } else if (status !== 200 && status !== 204) { return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { @@ -168,9 +149,6 @@ export class TodoItemsClient implements ITodoItemsClient { return _observableOf(null as any); } - /** - * @return OK - */ updateTodoItem(id: number, command: UpdateTodoItemCommand): Observable { let url_ = this.baseUrl + "/api/TodoItems/{id}"; if (id === undefined || id === null) @@ -186,7 +164,6 @@ export class TodoItemsClient implements ITodoItemsClient { responseType: "blob", headers: new HttpHeaders({ "Content-Type": "application/json", - "Accept": "application/json" }) }; @@ -211,11 +188,7 @@ export class TodoItemsClient implements ITodoItemsClient { (response as any).error instanceof Blob ? (response as any).error : undefined; let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }} - if (status === 200) { - return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { - return _observableOf(null as any); - })); - } else if (status === 204) { + if (status === 204) { return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { return _observableOf(null as any); })); @@ -231,9 +204,6 @@ export class TodoItemsClient implements ITodoItemsClient { return _observableOf(null as any); } - /** - * @return OK - */ deleteTodoItem(id: number): Observable { let url_ = this.baseUrl + "/api/TodoItems/{id}"; if (id === undefined || id === null) @@ -245,7 +215,6 @@ export class TodoItemsClient implements ITodoItemsClient { observe: "response", responseType: "blob", headers: new HttpHeaders({ - "Accept": "application/json" }) }; @@ -270,11 +239,7 @@ export class TodoItemsClient implements ITodoItemsClient { (response as any).error instanceof Blob ? (response as any).error : undefined; let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }} - if (status === 200) { - return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { - return _observableOf(null as any); - })); - } else if (status === 204) { + if (status === 204) { return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { return _observableOf(null as any); })); @@ -286,9 +251,6 @@ export class TodoItemsClient implements ITodoItemsClient { return _observableOf(null as any); } - /** - * @return OK - */ updateTodoItemDetail(id: number, command: UpdateTodoItemDetailCommand): Observable { let url_ = this.baseUrl + "/api/TodoItems/UpdateDetail/{id}"; if (id === undefined || id === null) @@ -304,7 +266,6 @@ export class TodoItemsClient implements ITodoItemsClient { responseType: "blob", headers: new HttpHeaders({ "Content-Type": "application/json", - "Accept": "application/json" }) }; @@ -329,11 +290,7 @@ export class TodoItemsClient implements ITodoItemsClient { (response as any).error instanceof Blob ? (response as any).error : undefined; let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }} - if (status === 200) { - return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { - return _observableOf(null as any); - })); - } else if (status === 204) { + if (status === 204) { return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { return _observableOf(null as any); })); @@ -352,17 +309,8 @@ export class TodoItemsClient implements ITodoItemsClient { export interface ITodoListsClient { getTodoLists(): Observable; - /** - * @return OK - */ - createTodoList(command: CreateTodoListCommand): Observable; - /** - * @return OK - */ + createTodoList(command: CreateTodoListCommand): Observable; updateTodoList(id: number, command: UpdateTodoListCommand): Observable; - /** - * @return OK - */ deleteTodoList(id: number): Observable; } @@ -427,10 +375,7 @@ export class TodoListsClient implements ITodoListsClient { return _observableOf(null as any); } - /** - * @return OK - */ - createTodoList(command: CreateTodoListCommand): Observable { + createTodoList(command: CreateTodoListCommand): Observable { let url_ = this.baseUrl + "/api/TodoLists"; url_ = url_.replace(/[?&]$/, ""); @@ -453,31 +398,27 @@ export class TodoListsClient implements ITodoListsClient { try { return this.processCreateTodoList(response_ as any); } catch (e) { - return _observableThrow(e) as any as Observable; + return _observableThrow(e) as any as Observable; } } else - return _observableThrow(response_) as any as Observable; + return _observableThrow(response_) as any as Observable; })); } - protected processCreateTodoList(response: HttpResponseBase): Observable { + protected processCreateTodoList(response: HttpResponseBase): Observable { const status = response.status; const responseBlob = response instanceof HttpResponse ? response.body : (response as any).error instanceof Blob ? (response as any).error : undefined; let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }} - if (status === 200) { - return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { - return _observableOf(null as any); - })); - } else if (status === 201) { + if (status === 201) { return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { let result201: any = null; let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); result201 = resultData201 !== undefined ? resultData201 : null; - return throwException("A server side error occurred.", status, _responseText, _headers, result201); + return _observableOf(result201); })); } else if (status !== 200 && status !== 204) { return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { @@ -487,9 +428,6 @@ export class TodoListsClient implements ITodoListsClient { return _observableOf(null as any); } - /** - * @return OK - */ updateTodoList(id: number, command: UpdateTodoListCommand): Observable { let url_ = this.baseUrl + "/api/TodoLists/{id}"; if (id === undefined || id === null) @@ -505,7 +443,6 @@ export class TodoListsClient implements ITodoListsClient { responseType: "blob", headers: new HttpHeaders({ "Content-Type": "application/json", - "Accept": "application/json" }) }; @@ -530,11 +467,7 @@ export class TodoListsClient implements ITodoListsClient { (response as any).error instanceof Blob ? (response as any).error : undefined; let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }} - if (status === 200) { - return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { - return _observableOf(null as any); - })); - } else if (status === 204) { + if (status === 204) { return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { return _observableOf(null as any); })); @@ -550,9 +483,6 @@ export class TodoListsClient implements ITodoListsClient { return _observableOf(null as any); } - /** - * @return OK - */ deleteTodoList(id: number): Observable { let url_ = this.baseUrl + "/api/TodoLists/{id}"; if (id === undefined || id === null) @@ -564,7 +494,6 @@ export class TodoListsClient implements ITodoListsClient { observe: "response", responseType: "blob", headers: new HttpHeaders({ - "Accept": "application/json" }) }; @@ -589,11 +518,7 @@ export class TodoListsClient implements ITodoListsClient { (response as any).error instanceof Blob ? (response as any).error : undefined; let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }} - if (status === 200) { - return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { - return _observableOf(null as any); - })); - } else if (status === 204) { + if (status === 204) { return blobToText(responseBlob).pipe(_observableMergeMap((_responseText: string) => { return _observableOf(null as any); })); diff --git a/src/Web/Infrastructure/WebApplicationExtensions.cs b/src/Web/Infrastructure/WebApplicationExtensions.cs index a2119e6f6..89c8fde0d 100644 --- a/src/Web/Infrastructure/WebApplicationExtensions.cs +++ b/src/Web/Infrastructure/WebApplicationExtensions.cs @@ -11,8 +11,7 @@ public static RouteGroupBuilder MapGroup(this WebApplication app, EndpointGroupB return app .MapGroup($"/api/{groupName}") .WithGroupName(groupName) - .WithTags(groupName) - .WithOpenApi(); + .WithTags(groupName); } public static WebApplication MapEndpoints(this WebApplication app) diff --git a/src/Web/wwwroot/api/specification-webapi.json b/src/Web/wwwroot/api/specification-webapi.json index 1e0f49995..164584b74 100644 --- a/src/Web/wwwroot/api/specification-webapi.json +++ b/src/Web/wwwroot/api/specification-webapi.json @@ -2,7 +2,7 @@ "x-generator": "NSwag v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))", "openapi": "3.0.0", "info": { - "title": "CaApi3 API", + "title": "CleanArchitecture API", "version": "1.0.0" }, "paths": { @@ -80,12 +80,6 @@ "x-position": 1 }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "201": { "description": "", "content": { @@ -136,12 +130,6 @@ "x-position": 2 }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "204": { "description": "" }, @@ -173,12 +161,6 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "204": { "description": "" } @@ -221,12 +203,6 @@ "x-position": 2 }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "204": { "description": "" }, @@ -283,12 +259,6 @@ "x-position": 1 }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "201": { "description": "", "content": { @@ -339,12 +309,6 @@ "x-position": 2 }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "204": { "description": "" }, @@ -376,12 +340,6 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "204": { "description": "" } diff --git a/src/Web/wwwroot/api/specification.json b/src/Web/wwwroot/api/specification.json index 75606f8af..965a9f522 100644 --- a/src/Web/wwwroot/api/specification.json +++ b/src/Web/wwwroot/api/specification.json @@ -75,12 +75,6 @@ "x-position": 1 }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "201": { "description": "", "content": { @@ -126,12 +120,6 @@ "x-position": 2 }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "204": { "description": "" }, @@ -158,12 +146,6 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "204": { "description": "" } @@ -201,12 +183,6 @@ "x-position": 2 }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "204": { "description": "" }, @@ -253,12 +229,6 @@ "x-position": 1 }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "201": { "description": "", "content": { @@ -304,12 +274,6 @@ "x-position": 2 }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "204": { "description": "" }, @@ -336,12 +300,6 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": {} - } - }, "204": { "description": "" }