This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// inspired by https://stackoverflow.com/questions/69899771/add-default-value-to-swagger-path-parameters | |
// this filter adds the latest controller or action version to the swagger ui parameters | |
// so when [Route("api/v{version:apiVersion}/[controller]")] | |
// in swaggerUI the version will be an additional required parameter to fill in. | |
// This filter will add a default value for the latest | |
internal class ApiVersionRouteParameterOperationFilter : IOperationFilter | |
{ | |
internal static IEnumerable<T> GetControllerAndActionAttributes<T>( OperationFilterContext context ) where T : Attribute | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.ActionConstraints; | |
using Microsoft.AspNetCore.Mvc.Infrastructure; | |
// namespace here | |
[ApiController] | |
[Route("api/[controller]")] // update route with your preference here | |
public class MonitorController : ControllerBase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: "Optimus Princeps"; | |
/* you'd have to download the font somewhere */ | |
src: url('OptimusPrinceps.ttf') format('ttf'); | |
} | |
body{ | |
text-align: center; | |
} | |
dialog.ds-popup{ | |
/* box */ |