Browse Source

More error handling improvements.

pull/593/head
Sebastian 5 years ago
parent
commit
44cc549ba9
  1. 8
      backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemaFieldsController.cs
  2. 6
      backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemasController.cs

8
backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemaFieldsController.cs

@ -35,7 +35,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas
/// <param name="request">The field object that needs to be added to the schema.</param> /// <param name="request">The field object that needs to be added to the schema.</param>
/// <returns> /// <returns>
/// 201 => Schema field created. /// 201 => Schema field created.
/// 400 => Schema field request not valid. /// 400 => Schema request not valid.
/// 404 => Schema or app not found. /// 404 => Schema or app not found.
/// 409 => Schema field name already in use. /// 409 => Schema field name already in use.
/// </returns> /// </returns>
@ -62,7 +62,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas
/// <param name="request">The field object that needs to be added to the schema.</param> /// <param name="request">The field object that needs to be added to the schema.</param>
/// <returns> /// <returns>
/// 201 => Schema field created. /// 201 => Schema field created.
/// 400 => Schema field request not valid. /// 400 => Schema request not valid.
/// 409 => Schema field name already in use. /// 409 => Schema field name already in use.
/// 404 => Schema, field or app not found. /// 404 => Schema, field or app not found.
/// </returns> /// </returns>
@ -88,7 +88,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas
/// <param name="request">The request that contains the field names.</param> /// <param name="request">The request that contains the field names.</param>
/// <returns> /// <returns>
/// 200 => Schema UI fields defined. /// 200 => Schema UI fields defined.
/// 400 => Schema field request not valid. /// 400 => Schema request not valid.
/// 404 => Schema or app not found. /// 404 => Schema or app not found.
/// </returns> /// </returns>
[HttpPut] [HttpPut]
@ -113,7 +113,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas
/// <param name="request">The request that contains the field ids.</param> /// <param name="request">The request that contains the field ids.</param>
/// <returns> /// <returns>
/// 200 => Schema fields reordered. /// 200 => Schema fields reordered.
/// 400 => Schema field request not valid. /// 400 => Schema request not valid.
/// 404 => Schema or app not found. /// 404 => Schema or app not found.
/// </returns> /// </returns>
[HttpPut] [HttpPut]

6
backend/src/Squidex/Areas/Api/Controllers/Schemas/SchemasController.cs

@ -262,7 +262,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas
/// <param name="request">The schema rules object that needs to updated.</param> /// <param name="request">The schema rules object that needs to updated.</param>
/// <returns> /// <returns>
/// 200 => Schema updated. /// 200 => Schema updated.
/// 400 => Schema rules are not valid. /// 400 => Schema request not valid.
/// 404 => Schema or app not found. /// 404 => Schema or app not found.
/// </returns> /// </returns>
[HttpPut] [HttpPut]
@ -285,7 +285,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas
/// <param name="app">The name of the app.</param> /// <param name="app">The name of the app.</param>
/// <param name="name">The name of the schema to publish.</param> /// <param name="name">The name of the schema to publish.</param>
/// <returns> /// <returns>
/// 200 => Schema has been published. /// 200 => Schema published.
/// 404 => Schema or app not found. /// 404 => Schema or app not found.
/// </returns> /// </returns>
[HttpPut] [HttpPut]
@ -308,7 +308,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas
/// <param name="app">The name of the app.</param> /// <param name="app">The name of the app.</param>
/// <param name="name">The name of the schema to unpublish.</param> /// <param name="name">The name of the schema to unpublish.</param>
/// <returns> /// <returns>
/// 200 => Schema has been unpublished. /// 200 => Schema unpublished.
/// 404 => Schema or app not found. /// 404 => Schema or app not found.
/// </returns> /// </returns>
[HttpPut] [HttpPut]

Loading…
Cancel
Save