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

Document the API and using Gaia without the Admin client #150

Closed
Skarlso opened this issue Jan 15, 2019 · 8 comments
Closed

Document the API and using Gaia without the Admin client #150

Skarlso opened this issue Jan 15, 2019 · 8 comments
Labels
Documentation A label for issues which handle the documentation of Gaia

Comments

@Skarlso
Copy link
Member

Skarlso commented Jan 15, 2019

There has been need to not use the UI but rather the API directly. We need to document a proper way of using the API without the admin client and document the API as well and it's features.

@Skarlso Skarlso changed the title Document the API Document the API and using Gaia without the Admin client. Jan 15, 2019
@Skarlso Skarlso changed the title Document the API and using Gaia without the Admin client. Document the API and using Gaia without the Admin client Jan 15, 2019
@Skarlso Skarlso added the Documentation A label for issues which handle the documentation of Gaia label Jan 15, 2019
@michelvocks
Copy link
Member

@Skarlso thanks. We need this for sure!

I also think that the current way of triggering a Gaia pipeline is too complex and not really user friendly (send request to get bearer token, send another request to trigger pipeline).
It would be cool if (optional) Gaia would automatically generate a token (or user provides one) and this could be used to trigger one specific pipeline. What do you think?

@Skarlso
Copy link
Member Author

Skarlso commented Jan 15, 2019

@michelvocks Hmm. How would you get to that token? Or would you have to use an authenticated admin for it which gives it to you for later usage? We'd have to safe the triggering token / pipeline, which should be fine. 🤔

@michelvocks
Copy link
Member

@Skarlso

Hmm. How would you get to that token? Or would you have to use an authenticated admin for it which gives it to you for later usage?

Exactly. In the pipeline settings you should be able to set/generate a token and attach it to one specific pipeline.
I know this feature from jenkins: https://humanwhocodes.com/blog/2015/10/triggering-jenkins-builds-by-url/
But there it's in my opinion also too complicated. I think there is no reason for providing two tokens.

@Skarlso
Copy link
Member Author

Skarlso commented Jan 16, 2019

Cool! That sounds doable!

@leberknecht
Copy link

It would be great if you could provide open API / swagger specs for the API, so we can use existing tooling like swagger-codegen to generate clients for SDK :)

@Skarlso
Copy link
Member Author

Skarlso commented Jan 17, 2019

ill-consider-it

@Skarlso
Copy link
Member Author

Skarlso commented Aug 12, 2020

Swagger has been added. I'll update the gaia docs with a static rip off it. Otherwise, the docs are available under:
the deployed base url /swagger/index.html.

@Skarlso Skarlso pinned this issue Aug 12, 2020
@Skarlso
Copy link
Member Author

Skarlso commented Aug 12, 2020

Documentation and swagger has been added.

Better late then never, I guess @leberknecht :D

@Skarlso Skarlso closed this as completed Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation A label for issues which handle the documentation of Gaia
Projects
None yet
Development

No branches or pull requests

3 participants