MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / getUfByCode

Function getUfByCode

services/ibge/gov.js:49–53  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

47 });
48
49export const getUfByCode = (code) =>
50 axios.get(`${URL_UF}/${code}`).then((response) => {
51 response.data = addCapital(response.data);
52 return response;
53 });
54
55export const getContiesByUf = async (uf) => {
56 const { data } = await axios.get(`${URL_UF}/${uf}/municipios`);

Callers 1

actionFunction · 0.90

Calls 1

addCapitalFunction · 0.85

Tested by

no test coverage detected