Files
prog-belyaev/API/lab-01/BrunoCollections/PokedexApi - v1 - 1/PokedexApi/post -pokemons.yml
T
2026-10-15 17:33:06 +03:00

48 lines
764 B
YAML

info:
name: post /pokemons
type: http
seq: 3
tags:
- PokedexApi
http:
method: POST
url: http://localhost:5211/pokemons
body:
type: json
data: |-
{
"name": "Pikachu",
"type": "Electric",
"level": 12
}
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
forwardAuthorizationHeader: false
examples:
- name: 200 Response
description: OK
request:
url: "{{baseUrl}}/pokemons"
method: POST
body:
type: json
data: |-
{
"name": "",
"type": "",
"level": ""
}
response:
status: 200
statusText: OK
body:
type: text
data: ""