(sigla)
| 114 | |
| 115 | @app_v1.route('/uf/<sigla>') |
| 116 | def 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>') |
nothing calls this directly
no test coverage detected