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

Namespacing and Version in API #1

Open
da2ce7 opened this issue Nov 22, 2022 · 2 comments
Open

Namespacing and Version in API #1

da2ce7 opened this issue Nov 22, 2022 · 2 comments

Comments

@da2ce7
Copy link
Contributor

da2ce7 commented Nov 22, 2022

No description provided.

@josecelano
Copy link
Member

@da2ce7 should we open an issue on the backend too? The API does not support versioning right now.

Maybe you just want the JS client to be ready to use multiple versions if the API support it in the future.

@josecelano
Copy link
Member

Hi @da2ce7 @WarmBeer the API is now using version v1. See torrust/torrust-index#155.

But I think the URL prefix is part of the configuration file .env in the main frontend app:

VITE_API_BASE_URL=https://YOUR_DOMAIN/v1

But maybe @da2ce7, you mean this package should allow the user to instantiate a client for a concrete API version.

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