feat(profile): endpoint mobile de leitura do perfil (Feature 3) - #3
Open
tecrodrigocastro wants to merge 1 commit into
Open
tecrodrigocastro wants to merge 1 commit into
tecrodrigocastro wants to merge 1 commit into
Conversation
GET /api/mobile/profile retorna o perfil do usuário autenticado (profissional, skills e experiências), via ProfileResource. v1 só leitura, conforme o PRD. Depende da story/531-api-mobile-auth-jwt (guard JWT `api`).
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.
Depende da he4rt#565
Base desta PR é
story/531-api-mobile-auth-jwt(não4.x), porque o endpoint depende do guard JWTapie da configuração de resposta JSON (bootstrap/app.php) introduzidos na he4rt#565 — sem isso,auth:apinão tem como autenticar nem devolver 401 corretamente.Fluxo esperado: a he4rt#565 mergeia em
4.xprimeiro (upstream); depois esta PR é re-targetada (ou reaberta) contra4.xpra mergear em seguida. Só deve ser mergeada depois da he4rt#565.Summary
Feature 3 do plano (
docs/plans/2026-09-22-api-mobile-jwt.md): endpoint de leitura do perfil do usuário autenticado para o app mobile.GET /api/mobile/profile(atrás deauth:api) retorna o perfil viaProfileResource: dados profissionais (nickname, headline, seniority, anos de experiência, about, social_links), disponibilidade/preferências, skills e experiências profissionais.MobileProfileControllerreaproveitaProfile::ensureExists(auth()->id()), já usado no resto do domínio.ResourceResponsepadrão do Laravel: quando o profile é criado na hora (primeiro acesso), ele devolveria201numa rotaGET— forçado200explicitamente.Test plan
vendor/bin/pint --dirtyvendor/bin/phpstan analyse app-modules/profile/src --memory-limit=1G(0 erros)vendor/bin/pest app-modules/profile/tests(73 testes passando, incluindo os 3 novos do endpoint)ProfileResourceconferido)