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

Add a Token model and return this instead of a bare string #64

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

kjsanger
Copy link
Member

This makes the token creation endpoint better aligned with the others in behaviour (all now return JSON with correct Content-Type for both success and HTTP errors).

The token JSON includes the relevant pipeline name and token description, an improvment over anonymous strings.

This makes the token creation endpoint better aligned with the others
in behaviour (all now return JSON with correct Content-Type for both
success and HTTP errors).

The token JSON includes the relevant pipeline name and token
description, an improvment over anonymous strings.
@kjsanger kjsanger added the enhancement New feature or request label Jun 17, 2024
@kjsanger kjsanger requested a review from nerdstrike June 17, 2024 10:53
Copy link
Contributor

@nerdstrike nerdstrike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes are fine. Do you think the user guide needs a minor modification now that it's a structured response?

I'm still quietly cursing fastapi for not implementing content negotation. It seems you have to throw out half of the advantage of fastapi to do it properly.

@kjsanger
Copy link
Member Author

Do you think the user guide needs a minor modification now that it's a structured response?

Yes - let me check that.

@nerdstrike nerdstrike merged commit 21c0add into wtsi-npg:devel Jun 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants