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

Fix FSHApiConventions #375

Merged
merged 2 commits into from
Jan 16, 2022
Merged

Fix FSHApiConventions #375

merged 2 commits into from
Jan 16, 2022

Conversation

fretje
Copy link
Contributor

@fretje fretje commented Jan 16, 2022

Some of the api's didn't have the ProducesResponseType attributes anymore due to adding cancellationtokens.
This pr fixes that... also fixes fullstackhero/blazor-wasm-boilerplate#81... will need an fshapi update there though...

@@ -45,7 +45,7 @@ public Task<string> GenerateRandomAsync(GenerateRandomBrandRequest request)
}

[HttpDelete("delete-random")]
[ApiConventionMethod(typeof(FSHApiConventions), nameof(FSHApiConventions.Delete))]
[ApiConventionMethod(typeof(FSHApiConventions), nameof(FSHApiConventions.Search))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Search?

Copy link
Contributor Author

@fretje fretje Jan 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that you can't use a method in that attribute that has multiple overloads... and search is one that doesn't have multiple overloads...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point it doesn't really matter as they all have the same attributes... but eventually we will probably want to clean this out and put the right responsecodes on the right kind of methods...

@iammukeshm iammukeshm merged commit b7c2183 into fullstackhero:main Jan 16, 2022
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

Successfully merging this pull request may close these issues.

ApiHelper.ExecuteCallGuardedAsync cannot catch exception
2 participants