[Route("publicapi/bzmplus")] [Tags("BZM+")] [ApiController] [JwtAuthorize(ApiScope.BzmPlus)] [ProducesResponseType(401)] [ProducesResponseType(403)] public class PubApiBzmPlusController : PubApiControllerBase<PubApiBzmPlusController> [HttpGet("procedures/{termGuid}")] [ProducesResponseType(typeof(List<BzmProcedureListItem>), StatusCodes.Status200OK)] public async Task<Results<Ok<IList<BzmProcedureListItem>>, UnauthorizedHttpResult, ForbidHttpResult>> GetProcedures(string termGuid) { if (RouteData.Values["JwtApiUser"] is not JwtApiUser user) return TypedResults.Unauthorized(); var procedures = await _bzmService.GetProceduresForUser(user.UserName!, termGuid); return TypedResults.Ok(procedures); }