Class SlugController
- Namespace
- GastroSky.Controllers.V1
- Assembly
- GastroSky.dll
Slug system endpoints.
[ApiController]
[Authorize]
[Route("api/v1/slugs")]
[Produces("application/json", new string[] { })]
public class SlugController : GastroSkyControllerBase
- Inheritance
-
SlugController
- Inherited Members
Constructors
SlugController(GastroSkyDatabaseContext, IMapper)
Slug system endpoints.
public SlugController(GastroSkyDatabaseContext db, IMapper mapper)
Parameters
dbGastroSkyDatabaseContextmapperIMapper
Methods
CheckSlugAvailability(string)
Slug availability check endpoint. Use this to test if a given slug is already in use or not.
[HttpGet]
[Route("check-availability/{slug}")]
[ProducesResponseType<ResponseBodyDto<SlugAvailabilityCheckResponseDto>>(200)]
public Task<IActionResult> CheckSlugAvailability(string slug)
Parameters
slugstringCheck if a slug is available or already in use.