From cd26b55fd821481d76e768286eb669dac5c0e798 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 23 Oct 2019 21:54:07 +0000 Subject: [PATCH] --- devdocs/todo.txt | 5 ----- server/AyaNova/Startup.cs | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/devdocs/todo.txt b/devdocs/todo.txt index dc392c6a..bd600166 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -7,11 +7,6 @@ eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNTcxODU5OTU0IiwiZXhwIjoiMTU3MjQ UPDATE all the things before commencing work - - -- API explorer should fill in v8 automatically to save typing - - doesn't appear to be a changed setting, probably changed how it works. - - Look into issues with project and how to specify - Add automated test to retrieve a manual page to ensure it's working - Add automated test to retrieve metrics to know it's working - Add automated test to retrieve apiroot page to know it's working diff --git a/server/AyaNova/Startup.cs b/server/AyaNova/Startup.cs index 1fcf023b..5b45acda 100644 --- a/server/AyaNova/Startup.cs +++ b/server/AyaNova/Startup.cs @@ -190,6 +190,8 @@ namespace AyaNova // note: this option is only necessary when versioning by url segment. the SubstitutionFormat // can also be used to control the format of the API version in route templates + + //THIS IS WHAT ADDS THE API version PARAMETER AUTOMATICALLY so you don't need to type an 8 in every swagger-ui route test options.SubstituteApiVersionInUrl = true; }); services.AddTransient, ConfigureSwaggerOptions>();