Skip to content

Leg 04

Rest identity, BLL, mappers, swagger

Deadline 2024-04-25 23:59:59

Implement BLL layer and mappers between all layers. Implement rest based identity methods (register, login, token refresh and logout).
Implement at least 3 app specific api controllers.
Add full support for api versioning.
Add support for swagger (with doc support, auth, etc).
Comment your code (turn xml comments on) - visible in swagger.
Add documentation atributes to all rest controllers.
Implement api versioning and use only public DTO's as input and output. Keep DTO-s as simple as possible.
Check from swagger, that no other schemas are used.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
        /// <summary>
        /// Return all contests visible to current user
        /// </summary>
        /// <returns>list of Contest</returns>
        [HttpGet]
        [ProducesResponseType<IEnumerable<App.BLL.DTO.Contest>>((int) HttpStatusCode.OK)]
        [ProducesResponseType((int) HttpStatusCode.Unauthorized)]
        [Produces("application/json")]
        [Consumes("application/json")]
        public async Task<ActionResult<IEnumerable<App.DTO.v1_0.Contest>>> GetContests()