Skip to content

Conversation

@josecelano
Copy link
Member

The tracker API uses now a prefix with the version. It has changed from:

http://0.0.0.0:1212/api/stats?token=MyAccessToken

to:

http://0.0.0.0:1212/api/v1/stats?token=MyAccessToken

@josecelano josecelano linked an issue Mar 13, 2023 that may be closed by this pull request
@josecelano
Copy link
Member Author

Hi @da2ce7 @WarmBeer, this is ready to review. I've just added the API prefix. As I mentioned here, we have duplicate code for the API client, but it requires some changes in the tracker if we want to extract that part to reuse it here.

On the other hand, I would refactor the TrackerService, I would extract the API client at least from the service. I have not done it because we do no have tests for the index-backend.

@josecelano josecelano merged commit 2426d04 into torrust:develop Mar 14, 2023
@josecelano josecelano deleted the issue-94-add-prefix-v1-to-tracker-api branch March 14, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Add prefix v1 to tracker API endpoint

1 participant