Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

frontend: build: add redirect URL to get API URL #1070

Merged
merged 1 commit into from
Aug 18, 2022
Merged

frontend: build: add redirect URL to get API URL #1070

merged 1 commit into from
Aug 18, 2022

Conversation

terceiro
Copy link
Member

When data is submitted via the API, there is currently no structured way
to obtain the internal build ID so that it can be used for API requests.
Add an URL at ///build//api/ that will redirect
to the correct API endpoint for the given build, i.e. /api/builds//.

When data is submitted via the API, there is currently no structured way
to obtain the internal build ID so that it can be used for API requests.
Add an URL at /<project>/<build>/build/<version>/api/ that will redirect
to the correct API endpoint for the given build, i.e. /api/builds/<id>/.
@chaws
Copy link
Collaborator

chaws commented Aug 18, 2022

LGTM

Just for future references, there's already a link in the build view ("api view of this build") pointing to the same api endpoint

@chaws chaws merged commit 663cbde into master Aug 18, 2022
@chaws chaws deleted the build-api branch March 2, 2023 18:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants