From 44cc549ba95adeaeac759fb44f3ef5b7a7d5493f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 20 Oct 2020 17:23:15 +0200 Subject: [PATCH] More error handling improvements. --- .../Api/Controllers/Schemas/SchemaFieldsController.cs | 8 ++++---- .../Areas/Api/Controllers/Schemas/SchemasController.cs | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemaFieldsController.cs b/backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemaFieldsController.cs index 59326b949..e199ba5e1 100644 --- a/backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemaFieldsController.cs +++ b/backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemaFieldsController.cs @@ -35,7 +35,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas /// The field object that needs to be added to the schema. /// /// 201 => Schema field created. - /// 400 => Schema field request not valid. + /// 400 => Schema request not valid. /// 404 => Schema or app not found. /// 409 => Schema field name already in use. /// @@ -62,7 +62,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas /// The field object that needs to be added to the schema. /// /// 201 => Schema field created. - /// 400 => Schema field request not valid. + /// 400 => Schema request not valid. /// 409 => Schema field name already in use. /// 404 => Schema, field or app not found. /// @@ -88,7 +88,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas /// The request that contains the field names. /// /// 200 => Schema UI fields defined. - /// 400 => Schema field request not valid. + /// 400 => Schema request not valid. /// 404 => Schema or app not found. /// [HttpPut] @@ -113,7 +113,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas /// The request that contains the field ids. /// /// 200 => Schema fields reordered. - /// 400 => Schema field request not valid. + /// 400 => Schema request not valid. /// 404 => Schema or app not found. /// [HttpPut] diff --git a/backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemasController.cs b/backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemasController.cs index bb07653f2..52437870f 100644 --- a/backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemasController.cs +++ b/backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemasController.cs @@ -262,7 +262,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas /// The schema rules object that needs to updated. /// /// 200 => Schema updated. - /// 400 => Schema rules are not valid. + /// 400 => Schema request not valid. /// 404 => Schema or app not found. /// [HttpPut] @@ -285,7 +285,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas /// The name of the app. /// The name of the schema to publish. /// - /// 200 => Schema has been published. + /// 200 => Schema published. /// 404 => Schema or app not found. /// [HttpPut] @@ -308,7 +308,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas /// The name of the app. /// The name of the schema to unpublish. /// - /// 200 => Schema has been unpublished. + /// 200 => Schema unpublished. /// 404 => Schema or app not found. /// [HttpPut]