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

[Feature Request] Project templates should have an option to generate the "call an API" part #196

Closed
jmprieur opened this issue Jun 10, 2020 · 1 comment

Comments

@jmprieur
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
The project templates show how to create a Web app, or a Web api, but they don't show how to introduce the second part: call a downstream API.

Describe the solution you'd like
Have 2 more mandator parameters and one optional parameter to the templates:

  • calledApi: URL to the API (for instance http://graph.microsoft.com/v1.0/me)
  • calledApiScopes: Scopes requested to call the web API
  • tokenCacheImplementation: [optional] InMemory, Redis, Sql => to generate the right cache

If these parameters are present:

  • the Startup.cs file adds the CallWebApis part and a token cache.

Describe alternatives you've considered
None

@jmprieur jmprieur changed the title [Feature Request] Project templates should have an option to generate the call an API part [Feature Request] Project templates should have an option to generate the "call an API" part Jun 10, 2020
@jmprieur jmprieur self-assigned this Jun 13, 2020
@jmprieur jmprieur added the fixed label Jun 19, 2020
@jmprieur jmprieur added this to the 0.2.0-preview milestone Jun 19, 2020
@jennyf19
Copy link
Collaborator

Included in 0.2.0-preview release

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

No branches or pull requests

2 participants