Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.WithTags("Nome of the API group"); #68

Open
rkmiecik opened this issue Jun 11, 2022 · 0 comments
Open

.WithTags("Nome of the API group"); #68

rkmiecik opened this issue Jun 11, 2022 · 0 comments

Comments

@rkmiecik
Copy link

rkmiecik commented Jun 11, 2022

This version can separate the apis by group? As when we use the .WithTags() parameter in out minimal apis, then Swagger group the routes above a title inside the .WithTags().

e.g:
app.MapInstantAPIs(config =>
{
config.IncludeTable(db => db.TABLE1, ApiMethodsToGenerate.All, "TABLE1").WithTags("GROUP TABLE 1");
});

app.MapInstantAPIs(config =>
{
config.IncludeTable(db => db.TABLE2, ApiMethodsToGenerate.All, "TABLE2").WithTags("GROUP TABLE 2");
});

Swagger will show something like this:

GROUP TABLE 1
[GET] /TABLE1
[POST] /TABLE1
[GET] /TABLE1/{id}
[PUT] /TABLE1/{id}
[DELETE] /TABLE1/{id}

GROUP TABLE 2
[GET] /TABLE2
[POST] /TABLE2
[GET] /TABLE2/{id}
[PUT] /TABLE2/{id}
[DELETE] /TABLE2/{id}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant