MCPcopy Index your code
hub / github.com/PostmonAPI/postmon / uf

Function uf

PostmonServer.py:116–127  ·  view source on GitHub ↗
(sigla)

Source from the content-addressed store, hash-verified

114
115@app_v1.route('/uf/<sigla>')
116def uf(sigla):
117 db = Database()
118 result = _get_estado_info(db, sigla)
119 if result:
120 response.headers['Cache-Control'] = 'public, max-age=2592000'
121 return format_result(result)
122 else:
123 message = '404 A sigla %s informada ' \
124 'nao pode ser localizada'
125 response.status = message % sigla
126 print response.status
127 return
128
129
130@app_v1.route('/cidade/<sigla_uf>/<nome>')

Callers

nothing calls this directly

Calls 2

_get_estado_infoFunction · 0.85
format_resultFunction · 0.85

Tested by

no test coverage detected