Open
Conversation
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.
💱 Back-end Challenge - Conversor de Moeda
API desenvolvida em PHP para conversão de moedas, como parte do desafio técnico da Apiki.
🚀 Tecnologias utilizadas
📦 Como rodar o projeto
🔧 1. Clonar o repositório
🐳 2. Subir o projeto com Docker
A aplicação estará disponível em:
🔥 Como usar a API
📌 Endpoint
📌 Exemplo
📌 Resposta
{ "valorConvertido": 5.00, "simboloMoeda": "$" }🧪 Rodando os testes
🔍 Acessar o container
composer test🧹 Padrão de código (Lint)
Verificar padrões:
Corrigir automaticamente:
📂 Estrutura do projeto
⚙️ Regras de negócio
O valor deve ser numérico e maior que zero
A taxa deve ser numérica e maior que zero
As moedas devem estar em formato ISO (3 letras maiúsculas)
Conversões suportadas:
❌ Tratamento de erros
A API retorna HTTP 400 para:
🧠 Decisões técnicas
🏁 Status
✅ Testes passando
✅ Lint aprovado (PSR-12)
✅ Pronto para produção/teste técnico
👨💻 Autor
Jamerson Wesley
📧 [[jamersonwesleyoliveira@gmail.com]
🔗 https://github.com/apiki/back-end-challenge