Skip to content

feat(profile): use ProfileResource for profile responses (Closes #11) - #12

Open
fearlessalan wants to merge 9 commits into
congodevelopersclub:devfrom
fearlessalan:feature/CDTM-005-list-profiles
Open

feat(profile): use ProfileResource for profile responses (Closes #11)#12
fearlessalan wants to merge 9 commits into
congodevelopersclub:devfrom
fearlessalan:feature/CDTM-005-list-profiles

Conversation

@fearlessalan

Copy link
Copy Markdown

Closes #11

@berna39 berna39 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hello @fearlessalan ,

Would you please rebase to the up to date dev branch?

@fearlessalan
fearlessalan force-pushed the feature/CDTM-005-list-profiles branch from 46c0271 to ec53099 Compare August 15, 2026 01:16
@fearlessalan

Copy link
Copy Markdown
Author

Hello @fearlessalan ,

Would you please rebase to the up to date dev branch?

Hi! Done, I have rebased the branch onto the latest dev and force-pushed. All tests and CI checks are green!

@fearlessalan
fearlessalan changed the base branch from main to dev August 15, 2026 03:50

@berna39 berna39 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Don't hesitate to rebase and then push after updating

}
],
"paths": {
"/api/v1/auth": {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would you add please add this file to .gitignore? because it will be generated on release build anyway

/**
* @mixin \App\Models\Profile
*/
class ProfileResource extends JsonResource

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should have Swagger (#[OA\Schema) so that it may be referenced in the controller

required: false,
schema: new OA\Schema(type: 'uuid', example: '00000000-0000-0000-0000-000000000000')
schema: new OA\Schema(type: 'integer', example: 1)
),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is where we need to set the created ressorce as response

schema: new OA\Schema(type: 'string', format: 'uuid', example: '00000000-0000-0000-0000-000000000000')
),
],
responses: [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The resource you created is the one that should be referenced here

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.

CDTM-005 [BACKEND] list profiles

2 participants