File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using System ;
2- using System . Collections . Generic ;
3- using System . Linq ;
4- using System . Threading . Tasks ;
5- using Microsoft . AspNetCore . Mvc ;
6-
7- // For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
1+ using Microsoft . AspNetCore . Mvc ;
82
93namespace Microsoft . eShopOnContainers . Services . Basket . API . Controllers
104{
@@ -13,7 +7,7 @@ public class HomeController : Controller
137 // GET: /<controller>/
148 public IActionResult Index ( )
159 {
16- return new RedirectResult ( "~/swagger/ui " ) ;
10+ return new RedirectResult ( "~/swagger" ) ;
1711 }
1812 }
1913}
Original file line number Diff line number Diff line change 1- using System ;
2- using System . Collections . Generic ;
3- using System . Linq ;
4- using System . Threading . Tasks ;
1+ using System . Collections . Generic ;
52
63namespace Microsoft . eShopOnContainers . Services . Basket . API . Model
74{
Original file line number Diff line number Diff line change 1- using System ;
2- using System . Collections . Generic ;
3- using System . Linq ;
4- using System . Threading . Tasks ;
5-
6- namespace Microsoft . eShopOnContainers . Services . Basket . API . Model
1+ namespace Microsoft . eShopOnContainers . Services . Basket . API . Model
72{
83 public class BasketItem
94 {
Original file line number Diff line number Diff line change 1111 "IIS Express" : {
1212 "commandName" : " IISExpress" ,
1313 "launchBrowser" : true ,
14- "launchUrl" : " api/values " ,
14+ "launchUrl" : " swagger " ,
1515 "environmentVariables" : {
1616 "ASPNETCORE_ENVIRONMENT" : " Development"
1717 }
1818 },
1919 "Microsoft.eShopOnContainers.Services.Basket.API" : {
2020 "commandName" : " Project" ,
2121 "launchBrowser" : true ,
22- "launchUrl" : " http://localhost:5000/api/values " ,
22+ "launchUrl" : " http://localhost:5000/swagger " ,
2323 "environmentVariables" : {
2424 "ASPNETCORE_ENVIRONMENT" : " Development"
2525 }
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public void ConfigureServices(IServiceCollection services)
8585 services . AddSwaggerGen ( options =>
8686 {
8787 options . DescribeAllEnumsAsStrings ( ) ;
88- options . SwaggerDoc ( "eShopOnContainers - Basket HTTP API " , new Swashbuckle . AspNetCore . Swagger . Info
88+ options . SwaggerDoc ( "v1 " , new Swashbuckle . AspNetCore . Swagger . Info
8989 {
9090 Title = "Basket HTTP API" ,
9191 Version = "v1" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class HomeController : Controller
99 // GET: /<controller>/
1010 public IActionResult Index ( )
1111 {
12- return new RedirectResult ( "~/swagger/ui " ) ;
12+ return new RedirectResult ( "~/swagger" ) ;
1313 }
1414 }
1515}
Original file line number Diff line number Diff line change 1111 "IIS Express" : {
1212 "commandName" : " IISExpress" ,
1313 "launchBrowser" : true ,
14- "launchUrl" : " /swagger/ui " ,
14+ "launchUrl" : " /swagger" ,
1515 "environmentVariables" : {
1616 "ASPNETCORE_ENVIRONMENT" : " Development"
1717 }
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public void ConfigureServices(IServiceCollection services)
8585 services . AddSwaggerGen ( options =>
8686 {
8787 options . DescribeAllEnumsAsStrings ( ) ;
88- options . SwaggerDoc ( "eShopOnContainers - Catalog HTTP API " , new Swashbuckle . AspNetCore . Swagger . Info
88+ options . SwaggerDoc ( "v1 " , new Swashbuckle . AspNetCore . Swagger . Info
8989 {
9090 Title = "eShopOnContainers - Catalog HTTP API" ,
9191 Version = "v1" ,
Original file line number Diff line number Diff line change 1- using System ;
2- using System . Collections . Generic ;
3- using System . Linq ;
4- using System . Threading . Tasks ;
5- using Microsoft . AspNetCore . Mvc ;
6-
7- // For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
1+ using Microsoft . AspNetCore . Mvc ;
82
93namespace Microsoft . eShopOnContainers . Services . Ordering . API . Controllers
104{
@@ -13,7 +7,7 @@ public class HomeController : Controller
137 // GET: /<controller>/
148 public IActionResult Index ( )
159 {
16- return new RedirectResult ( "~/swagger/ui " ) ;
10+ return new RedirectResult ( "~/swagger" ) ;
1711 }
1812 }
1913}
Original file line number Diff line number Diff line change 1111 "IIS Express" : {
1212 "commandName" : " IISExpress" ,
1313 "launchBrowser" : true ,
14- "launchUrl" : " /swagger/ui " ,
14+ "launchUrl" : " /swagger" ,
1515 "environmentVariables" : {
1616 "ASPNETCORE_ENVIRONMENT" : " Development"
1717 }
You can’t perform that action at this time.
0 commit comments