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 route for getting the tags of a news object #118

Open
Trobbi opened this issue Jan 21, 2025 · 0 comments
Open

Add route for getting the tags of a news object #118

Trobbi opened this issue Jan 21, 2025 · 0 comments
Labels
good first issue Good for newcomers

Comments

@Trobbi
Copy link
Contributor

Trobbi commented Jan 21, 2025

We need a GET route that when called returns a list of all the tags associated with the specified news.

What needs to be done?

  1. Create a route called get_news_tags
  2. Create/find an appropriate schema for the output (This might be found in api_schemas/tag_schema.py).
  3. Do a query to get all tags associated with the specified news_id. If the news object doesnt exist, raise an exception (404 Not found).
  4. Add appropriate Permissions (The appropriate permissions might not be decided yet, see Decide how the Tag permissions should work. #119 ).
@Trobbi Trobbi added the good first issue Good for newcomers label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant