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

UI: Add API url in API Key window #2280

Closed
1 of 2 tasks
pcrespov opened this issue Apr 19, 2021 · 5 comments · Fixed by #6843
Closed
1 of 2 tasks

UI: Add API url in API Key window #2280

pcrespov opened this issue Apr 19, 2021 · 5 comments · Fixed by #6843
Assignees
Labels
a:api framework api, data schemas, a:frontend issue affecting the front-end (area group)
Milestone

Comments

@pcrespov
Copy link
Member

pcrespov commented Apr 19, 2021

When a user generate the API keys, it would be handy to have the base-url as well at hand (in all deploys except for AWS-production osparc.io because that is the default). Those are the three elements needed to setup the API configuration

image.png

Event Horizon

Preview Give feedback
  1. a:webserver t:enhancement
    giancarloromeo odeimaiz
  2. bug
    pcrespov
@pcrespov pcrespov added a:api framework api, data schemas, a:frontend issue affecting the front-end (area group) labels Apr 19, 2021
@pcrespov
Copy link
Member Author

  • add api url in statics so that front-end can display correct.
  • add doc api as well

@pcrespov
Copy link
Member Author

@giancarloromeo please return the api entrypoint in the response to create an api-key. Check app.request.url

@giancarloromeo
Copy link
Contributor

See #6340 for proper api_base_url generation.

@giancarloromeo
Copy link
Contributor

giancarloromeo commented Dec 6, 2024

@odeimaiz the updated OpenAPI Spec is in services\web\server\src\simcore_service_webserver\api\v0\openapi.yaml

ReDoc

In particular, the CREATE API KEY endpoint (POST /v0/auth/api-keys):

Image

The API Key creation returns (just the first time!) 2 new fields:

  • id will be used for subsequent GET and DELETE operations
  • api_base_url must be returned in the UI as sketched above.

@giancarloromeo
Copy link
Contributor

Addressed in the other issue #6843

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:api framework api, data schemas, a:frontend issue affecting the front-end (area group)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants