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

NSwag Generator #2

Open
smargoli2 opened this issue Oct 26, 2022 · 1 comment
Open

NSwag Generator #2

smargoli2 opened this issue Oct 26, 2022 · 1 comment

Comments

@smargoli2
Copy link

Hey,
Can you provide details of how you generated the clients using NSwag? Did you do it using the UI or command line? What settings did you use? Can you provide screenshots/code samples?
Thanks! This is a great repo!

@arpetris
Copy link

arpetris commented May 3, 2023

If you look in the src/Clients/XXXX.Clients directories you'll find a nswag.json file that contains the settings for code generation.

Based on that I'm guessing that the command line was used to generate the code.

Don't discount the work done on the Authentication code so that it uses HttpClient instead of RestSharp.

I think that this code supports the suggested best practice to setup the IAM policies and entities so that the policy is attached to a role which is attached to a user. The Authentication code in the main branch of Selling Partner API Authentication/Authorization Library only supports a policy directly attached to a user. At least I could only get the Amazon directions in their blog post to work with that configuration.

I'm new to Swagger and using AWS Authentication so no guarantees I'm right. I know just enough to be dangerous.

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

2 participants