Skip to content

Add endpoint to get all words of a unit#611

Merged
sascha11110 merged 1 commit intodevelopfrom
583-get-words-of-unit
Oct 28, 2025
Merged

Add endpoint to get all words of a unit#611
sascha11110 merged 1 commit intodevelopfrom
583-get-words-of-unit

Conversation

@david-venhoff
Copy link
Copy Markdown
Member

Short description

Adds a new api v2 endpoint units/<id>/words to get all words of a unit, with their correct image

Proposed changes

  • Add the endpoint
  • Add method to UnitWordRelation to get the image that should be used in the api response

Resolved issues

Fixes: #583

@sascha11110 sascha11110 self-requested a review October 21, 2025 22:26
@sascha11110 sascha11110 force-pushed the 583-get-words-of-unit branch 2 times, most recently from 6347c1f to a8493ff Compare October 21, 2025 23:14
Comment thread lunes_cms/api/v2/views/unit_words_viewset.py
@sascha11110 sascha11110 force-pushed the 583-get-words-of-unit branch from a8493ff to a27f591 Compare October 21, 2025 23:25
@sascha11110 sascha11110 force-pushed the 583-get-words-of-unit branch from 3b53912 to d1fcfb3 Compare October 28, 2025 08:33
@sascha11110 sascha11110 merged commit 6d7eaed into develop Oct 28, 2025
1 check passed
@sascha11110 sascha11110 deleted the 583-get-words-of-unit branch October 28, 2025 08:39
@sascha11110 sascha11110 mentioned this pull request Nov 10, 2025
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.

API v2: List all words of a unit

2 participants