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

API - Detalhar condomínio #68

Merged
merged 3 commits into from
Jul 8, 2024
Merged

API - Detalhar condomínio #68

merged 3 commits into from
Jul 8, 2024

Conversation

ruliancruz
Copy link
Contributor

@ruliancruz ruliancruz commented Jul 5, 2024

Introdução

Sistemas externos agora podem requisitar a API do CondoMinions e obter os detalhes de um condomínio cadastrado inserindo o seu id.

Objetivo

Permitir que a aplicação PagueAluguel consiga obter os detalhes de um condomínio específico do CondoMinions.

Endpoint

GET /api/v1/condos/{id}

Retorna os detalhes de um condomínio com o nome, CNPJ, logradouro, número, bairro, cidade, estado e CEP de cada um. Retorna erro 404 caso não exista um condomínio cadastrado com esse id.

Exemplo de resposta:

{
  "name": "Condomínio Residencial Paineiras",
  "registration_number": "62.810.952/2718-22",
  "address": {
    "public_place": "Travessa João Edimar",
    "number": "29",
    "neighborhood": "João Eduardo II",
    "city": "Rio Branco",
    "state": "AC",
    "zip": "69911-520"
  }
}

Foram implementados testes de requisição de API.

Resolve a issue #64

@ruliancruz ruliancruz added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 5, 2024
@ruliancruz ruliancruz linked an issue Jul 5, 2024 that may be closed by this pull request
@ruliancruz ruliancruz changed the title API Detalhar Conominio API Detalhar Condominio Jul 5, 2024
Copy link
Contributor

@thalytalima211 thalytalima211 left a comment

Choose a reason for hiding this comment

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

Ao meu ver, está tudo ok!

@ruliancruz ruliancruz changed the title API Detalhar Condominio API Detalhar condominio Jul 6, 2024
@ruliancruz ruliancruz changed the title API Detalhar condominio API - Detalhar condominio Jul 6, 2024
@ruliancruz ruliancruz changed the title API - Detalhar condominio API - Detalhar condomínio Jul 6, 2024
Copy link
Contributor

@lucasobx lucasobx left a comment

Choose a reason for hiding this comment

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

Tudo ok!

@RyanOxon RyanOxon merged commit 9ac2bbd into main Jul 8, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API - Detalhes do condomínio
5 participants