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 EffectTag creation to API #937

Merged
merged 9 commits into from
Oct 27, 2023
Merged

add EffectTag creation to API #937

merged 9 commits into from
Oct 27, 2023

Conversation

shapiromatron
Copy link
Owner

@shapiromatron shapiromatron commented Oct 20, 2023

For animal.Endpoint, epi.Outcome, and epi.Result, the effect tag objects could not be created via API. This PR updates our API so that they can be added. Note that you cannot both create AND update a result tag with a single method.

To create a new tag, you can use a new API:

  • POST /assessment/api/effect-tag/ with JSON like this: {name: foo, slug: foo}

Then, to add a tag to any item created, you use the name, for example, for animal.Endpoint:

  • POST /ani/api/endpoint/ with {effects: ["foo"]}

@shapiromatron shapiromatron marked this pull request as ready for review October 20, 2023 19:14
@shapiromatron shapiromatron merged commit 570d900 into main Oct 27, 2023
@shapiromatron shapiromatron deleted the api-patch branch October 27, 2023 21:42
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

Successfully merging this pull request may close these issues.

2 participants