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

upload de imagem-base 64 #75

Open
3 tasks done
Luanftg opened this issue Apr 8, 2023 · 0 comments
Open
3 tasks done

upload de imagem-base 64 #75

Luanftg opened this issue Apr 8, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request feature nova funcionalidade para a applicação Sprint lll desenvolvimentos para Sprint lll

Comments

@Luanftg
Copy link
Collaborator

Luanftg commented Apr 8, 2023

Upload de Imagem no formato base64

História

  • Um Client para fazer upload de imagem no servidor deve enviar uma solicitação POST com o arquivo de imagem convertido para base64 juntamente do Id da empresa a que pertence a imagem.
  • Para obter a imagem do servidor o Client envia uma solicitação GET com o ID da empresa que deseja.

Atividades

  • Criar controlador seguro da rota /companies-images para o endpoint CompaniesImageController
  • Adicionar endpoint às rotas públicas
    • POST /companies-image - exige autenticação
    • GET /companies-image/id/<companyID> - rota pública que retorna um content-type: image/<extension> Ex. image/png.
  • Refatoração dos controladores que agora possuem optar por não retornar um content-type: application/json
@Luanftg Luanftg self-assigned this Apr 8, 2023
@Luanftg Luanftg added enhancement New feature or request feature nova funcionalidade para a applicação Sprint lll desenvolvimentos para Sprint lll labels Apr 8, 2023
@Luanftg Luanftg added this to the Entrega Sprint lll milestone Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature nova funcionalidade para a applicação Sprint lll desenvolvimentos para Sprint lll
Projects
Status: Tests
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant