-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#641) Fixed Swashbuckle generation with route parameters (#643)
* (#641) route picker update for template routes (Swashbuckle) * (#641) Added test to check that route parameters work with NSwag
- Loading branch information
1 parent
936970c
commit c159202
Showing
11 changed files
with
1,347 additions
and
18 deletions.
There are no files selected for viewing
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
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
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
21 changes: 21 additions & 0 deletions
21
sdk/dotnet/test/Microsoft.AspNetCore.Datasync.NSwag.Test/Service/TodoItemController.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) Microsoft Corporation. All Rights Reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Microsoft.AspNetCore.Datasync.EFCore; | ||
using Microsoft.AspNetCore.Mvc; | ||
using Microsoft.Extensions.Logging; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Microsoft.AspNetCore.Datasync.NSwag.Test.Service | ||
{ | ||
[Route("tables/[controller]")] | ||
[ExcludeFromCodeCoverage] | ||
public class TodoItemController : TableController<TodoItem> | ||
{ | ||
public TodoItemController(ServiceDbContext context, ILogger<TodoItem> logger) : base() | ||
{ | ||
Repository = new EntityTableRepository<TodoItem>(context); | ||
Logger = logger; | ||
} | ||
} | ||
} |
Oops, something went wrong.