|
| 1 | +{ |
| 2 | + "info": { |
| 3 | + "name": "API Workout Python", |
| 4 | + "_postman_id": "9a5f4b9d-2e4d-4b8c-92c4-9b7f6f202510", |
| 5 | + "description": "Coleção Postman para testar a API Workout Python (Atletas, Categorias e Centros de Treinamento).", |
| 6 | + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" |
| 7 | + }, |
| 8 | + "item": [ |
| 9 | + { |
| 10 | + "name": "Atletas", |
| 11 | + "item": [ |
| 12 | + { |
| 13 | + "name": "Criar Atleta", |
| 14 | + "request": { |
| 15 | + "method": "POST", |
| 16 | + "header": [ |
| 17 | + { "key": "Content-Type", "value": "application/json" } |
| 18 | + ], |
| 19 | + "body": { |
| 20 | + "mode": "raw", |
| 21 | + "raw": "{\n \"nome\": \"João Silva\",\n \"idade\": 25,\n \"categoria_id\": 1,\n \"centro_treinamento_id\": 1\n}" |
| 22 | + }, |
| 23 | + "url": { |
| 24 | + "raw": "http://localhost:8000/api/v1/atletas/", |
| 25 | + "protocol": "http", |
| 26 | + "host": ["localhost"], |
| 27 | + "port": "8000", |
| 28 | + "path": ["api", "v1", "atletas", ""] |
| 29 | + } |
| 30 | + }, |
| 31 | + "response": [] |
| 32 | + }, |
| 33 | + { |
| 34 | + "name": "Listar Atletas", |
| 35 | + "request": { |
| 36 | + "method": "GET", |
| 37 | + "url": { |
| 38 | + "raw": "http://localhost:8000/api/v1/atletas/?page=1&size=10", |
| 39 | + "protocol": "http", |
| 40 | + "host": ["localhost"], |
| 41 | + "port": "8000", |
| 42 | + "path": ["api", "v1", "atletas", ""], |
| 43 | + "query": [ |
| 44 | + { "key": "page", "value": "1" }, |
| 45 | + { "key": "size", "value": "10" } |
| 46 | + ] |
| 47 | + } |
| 48 | + }, |
| 49 | + "response": [] |
| 50 | + }, |
| 51 | + { |
| 52 | + "name": "Obter Atleta por ID", |
| 53 | + "request": { |
| 54 | + "method": "GET", |
| 55 | + "url": { |
| 56 | + "raw": "http://localhost:8000/api/v1/atletas/1", |
| 57 | + "protocol": "http", |
| 58 | + "host": ["localhost"], |
| 59 | + "port": "8000", |
| 60 | + "path": ["api", "v1", "atletas", "1"] |
| 61 | + } |
| 62 | + }, |
| 63 | + "response": [] |
| 64 | + }, |
| 65 | + { |
| 66 | + "name": "Atualizar Atleta", |
| 67 | + "request": { |
| 68 | + "method": "PUT", |
| 69 | + "header": [ |
| 70 | + { "key": "Content-Type", "value": "application/json" } |
| 71 | + ], |
| 72 | + "body": { |
| 73 | + "mode": "raw", |
| 74 | + "raw": "{\n \"nome\": \"João Souza\",\n \"idade\": 26\n}" |
| 75 | + }, |
| 76 | + "url": { |
| 77 | + "raw": "http://localhost:8000/api/v1/atletas/1", |
| 78 | + "protocol": "http", |
| 79 | + "host": ["localhost"], |
| 80 | + "port": "8000", |
| 81 | + "path": ["api", "v1", "atletas", "1"] |
| 82 | + } |
| 83 | + }, |
| 84 | + "response": [] |
| 85 | + }, |
| 86 | + { |
| 87 | + "name": "Deletar Atleta", |
| 88 | + "request": { |
| 89 | + "method": "DELETE", |
| 90 | + "url": { |
| 91 | + "raw": "http://localhost:8000/api/v1/atletas/1", |
| 92 | + "protocol": "http", |
| 93 | + "host": ["localhost"], |
| 94 | + "port": "8000", |
| 95 | + "path": ["api", "v1", "atletas", "1"] |
| 96 | + } |
| 97 | + }, |
| 98 | + "response": [] |
| 99 | + } |
| 100 | + ] |
| 101 | + }, |
| 102 | + { |
| 103 | + "name": "Categorias", |
| 104 | + "item": [ |
| 105 | + { |
| 106 | + "name": "Criar Categoria", |
| 107 | + "request": { |
| 108 | + "method": "POST", |
| 109 | + "header": [ |
| 110 | + { "key": "Content-Type", "value": "application/json" } |
| 111 | + ], |
| 112 | + "body": { |
| 113 | + "mode": "raw", |
| 114 | + "raw": "{\n \"nome\": \"Peso Leve\"\n}" |
| 115 | + }, |
| 116 | + "url": { |
| 117 | + "raw": "http://localhost:8000/api/v1/categorias/", |
| 118 | + "protocol": "http", |
| 119 | + "host": ["localhost"], |
| 120 | + "port": "8000", |
| 121 | + "path": ["api", "v1", "categorias", ""] |
| 122 | + } |
| 123 | + }, |
| 124 | + "response": [] |
| 125 | + }, |
| 126 | + { |
| 127 | + "name": "Listar Categorias", |
| 128 | + "request": { |
| 129 | + "method": "GET", |
| 130 | + "url": { |
| 131 | + "raw": "http://localhost:8000/api/v1/categorias/", |
| 132 | + "protocol": "http", |
| 133 | + "host": ["localhost"], |
| 134 | + "port": "8000", |
| 135 | + "path": ["api", "v1", "categorias", ""] |
| 136 | + } |
| 137 | + }, |
| 138 | + "response": [] |
| 139 | + }, |
| 140 | + { |
| 141 | + "name": "Obter Categoria por ID", |
| 142 | + "request": { |
| 143 | + "method": "GET", |
| 144 | + "url": { |
| 145 | + "raw": "http://localhost:8000/api/v1/categorias/1", |
| 146 | + "protocol": "http", |
| 147 | + "host": ["localhost"], |
| 148 | + "port": "8000", |
| 149 | + "path": ["api", "v1", "categorias", "1"] |
| 150 | + } |
| 151 | + }, |
| 152 | + "response": [] |
| 153 | + }, |
| 154 | + { |
| 155 | + "name": "Atualizar Categoria", |
| 156 | + "request": { |
| 157 | + "method": "PUT", |
| 158 | + "header": [ |
| 159 | + { "key": "Content-Type", "value": "application/json" } |
| 160 | + ], |
| 161 | + "body": { |
| 162 | + "mode": "raw", |
| 163 | + "raw": "{\n \"nome\": \"Peso Médio\"\n}" |
| 164 | + }, |
| 165 | + "url": { |
| 166 | + "raw": "http://localhost:8000/api/v1/categorias/1", |
| 167 | + "protocol": "http", |
| 168 | + "host": ["localhost"], |
| 169 | + "port": "8000", |
| 170 | + "path": ["api", "v1", "categorias", "1"] |
| 171 | + } |
| 172 | + }, |
| 173 | + "response": [] |
| 174 | + }, |
| 175 | + { |
| 176 | + "name": "Deletar Categoria", |
| 177 | + "request": { |
| 178 | + "method": "DELETE", |
| 179 | + "url": { |
| 180 | + "raw": "http://localhost:8000/api/v1/categorias/1", |
| 181 | + "protocol": "http", |
| 182 | + "host": ["localhost"], |
| 183 | + "port": "8000", |
| 184 | + "path": ["api", "v1", "categorias", "1"] |
| 185 | + } |
| 186 | + }, |
| 187 | + "response": [] |
| 188 | + } |
| 189 | + ] |
| 190 | + }, |
| 191 | + { |
| 192 | + "name": "Centros de Treinamento", |
| 193 | + "item": [ |
| 194 | + { |
| 195 | + "name": "Criar Centro", |
| 196 | + "request": { |
| 197 | + "method": "POST", |
| 198 | + "header": [ |
| 199 | + { "key": "Content-Type", "value": "application/json" } |
| 200 | + ], |
| 201 | + "body": { |
| 202 | + "mode": "raw", |
| 203 | + "raw": "{\n \"nome\": \"CT Gracie Barra\",\n \"endereco\": \"Rua dos Lutadores, 123\"\n}" |
| 204 | + }, |
| 205 | + "url": { |
| 206 | + "raw": "http://localhost:8000/api/v1/centros/", |
| 207 | + "protocol": "http", |
| 208 | + "host": ["localhost"], |
| 209 | + "port": "8000", |
| 210 | + "path": ["api", "v1", "centros", ""] |
| 211 | + } |
| 212 | + }, |
| 213 | + "response": [] |
| 214 | + }, |
| 215 | + { |
| 216 | + "name": "Listar Centros", |
| 217 | + "request": { |
| 218 | + "method": "GET", |
| 219 | + "url": { |
| 220 | + "raw": "http://localhost:8000/api/v1/centros/", |
| 221 | + "protocol": "http", |
| 222 | + "host": ["localhost"], |
| 223 | + "port": "8000", |
| 224 | + "path": ["api", "v1", "centros", ""] |
| 225 | + } |
| 226 | + }, |
| 227 | + "response": [] |
| 228 | + }, |
| 229 | + { |
| 230 | + "name": "Obter Centro por ID", |
| 231 | + "request": { |
| 232 | + "method": "GET", |
| 233 | + "url": { |
| 234 | + "raw": "http://localhost:8000/api/v1/centros/1", |
| 235 | + "protocol": "http", |
| 236 | + "host": ["localhost"], |
| 237 | + "port": "8000", |
| 238 | + "path": ["api", "v1", "centros", "1"] |
| 239 | + } |
| 240 | + }, |
| 241 | + "response": [] |
| 242 | + }, |
| 243 | + { |
| 244 | + "name": "Atualizar Centro", |
| 245 | + "request": { |
| 246 | + "method": "PUT", |
| 247 | + "header": [ |
| 248 | + { "key": "Content-Type", "value": "application/json" } |
| 249 | + ], |
| 250 | + "body": { |
| 251 | + "mode": "raw", |
| 252 | + "raw": "{\n \"nome\": \"CT Alliance\",\n \"endereco\": \"Av. Central, 456\"\n}" |
| 253 | + }, |
| 254 | + "url": { |
| 255 | + "raw": "http://localhost:8000/api/v1/centros/1", |
| 256 | + "protocol": "http", |
| 257 | + "host": ["localhost"], |
| 258 | + "port": "8000", |
| 259 | + "path": ["api", "v1", "centros", "1"] |
| 260 | + } |
| 261 | + }, |
| 262 | + "response": [] |
| 263 | + }, |
| 264 | + { |
| 265 | + "name": "Deletar Centro", |
| 266 | + "request": { |
| 267 | + "method": "DELETE", |
| 268 | + "url": { |
| 269 | + "raw": "http://localhost:8000/api/v1/centros/1", |
| 270 | + "protocol": "http", |
| 271 | + "host": ["localhost"], |
| 272 | + "port": "8000", |
| 273 | + "path": ["api", "v1", "centros", "1"] |
| 274 | + } |
| 275 | + }, |
| 276 | + "response": [] |
| 277 | + } |
| 278 | + ] |
| 279 | + } |
| 280 | + ] |
| 281 | +} |
0 commit comments