feat(adoptions): add role-based adoption listing endpoint#75
Closed
anoncon wants to merge 3 commits intoamina69:mainfrom
Closed
feat(adoptions): add role-based adoption listing endpoint#75anoncon wants to merge 3 commits intoamina69:mainfrom
anoncon wants to merge 3 commits intoamina69:mainfrom
Conversation
Author
|
@amina69 please review my PR |
Owner
|
@anoncon , kindly resolve the little conflict |
Author
|
@amina69 it is possible to merge it i resolve the conflicts |
Owner
|
@anoncon , yes no conflict, but the cicd pipeline failed, i cant merge, kindly check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements
GET /adoptionswith role-based visibility and optional filters.USERsees only their own adoption requests (adopterId = currentUserId)SHELTERsees requests for pets they own (pet.currentOwnerId = currentUserId)ADMINsees all adoption requestsstatus(e.g.PENDING)petIdcreatedAt desc){ data: [...] }with:id,status,reason,createdAt)id,name,species,imageUrl,images)id,name,email) without sensitive fieldsFiles Changed
src/adoption/adoption.controller.tssrc/adoption/adoption.module.tssrc/adoption/adoption.service.tssrc/adoption/dto/filter-adoptions.dto.tssrc/adoption/adoption.service.spec.tsNotes
GET /adoptionsis protected byJwtAuthGuard[]insidedata(not 404)Closes #21