Skip to content

Commit

Permalink
docs: update doc for region routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-P2 committed Jan 28, 2024
1 parent 36c7b6c commit 1d5b2c4
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions pages/docs/doc/ibge.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
"/ibge/regioes/v1": {
"get": {
"tags": ["IBGE"],
"summary": "Retorna as informações das regiões do Brasil",
"summary": "Retorna informações de todas as regiões do Brasil",
"description": "",
"responses": {
"200": {
Expand All @@ -250,10 +250,10 @@
}
}
},
"/ibge/regioes/v1/{region}": {
"/ibge/uf/v1/regiao/{regionCode}": {
"get": {
"tags": ["IBGE"],
"summary": "Busca as informações de uma região à partir da sigla ou código",
"summary": "Busca os estados de uma região à partir da sigla ou código",
"description": "",
"responses": {
"200": {
Expand Down Expand Up @@ -286,6 +286,40 @@
}
}
}
},
"/ibge/regioes/v1/{regionCode}": {
"get": {
"tags": ["IBGE"],
"summary": "Busca as informações de uma região em específico",
"description": "",
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Region"
}
}
}
},
"404": {
"description": "O código / sigla da região não foi encontrado",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorMessage"
},
"example": {
"name": "NotFoundError",
"message": "Região não encontrada.",
"type": "not_found"
}
}
}
}
}
}
}
},
"components": {
Expand Down

0 comments on commit 1d5b2c4

Please sign in to comment.