This commit is contained in:
2026-10-15 17:33:06 +03:00
parent 62f5d0d3fa
commit a91bae98ac
36 changed files with 940 additions and 107 deletions
+9
View File
@@ -0,0 +1,9 @@
# Secrets
.env*
# Dependencies
node_modules
# OS files
.DS_Store
Thumbs.db
+21
View File
@@ -0,0 +1,21 @@
info:
name: "1 request "
type: http
seq: 1
http:
method: GET
url: https://pokeapi.co/api/v2/pokemon/pikachu
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
forwardAuthorizationHeader: false
docs: |-
1 запрос:
Вывод покемона по имени
+23
View File
@@ -0,0 +1,23 @@
info:
name: 2 request
type: http
seq: 2
http:
method: GET
url: https://pokeapi.co/api/v2/pokemon/25
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
forwardAuthorizationHeader: false
docs: |-
2 запрос:
Вывод покемона по id
<br/>
+28
View File
@@ -0,0 +1,28 @@
info:
name: 3 request
type: http
seq: 3
http:
method: GET
url: https://pokeapi.co/api/v2/pokemon?limit=5&offset=0
params:
- name: limit
value: "5"
type: query
- name: offset
value: "0"
type: query
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
forwardAuthorizationHeader: false
docs: |-
3 запрос:
Вывод списка покемонов
+21
View File
@@ -0,0 +1,21 @@
info:
name: 4 request
type: http
seq: 4
http:
method: GET
url: https://pokeapi.co/api/v2/type/electric
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
forwardAuthorizationHeader: false
docs: |-
4 запрос:
Вывод информации о типе
+29
View File
@@ -0,0 +1,29 @@
info:
name: 5 request
type: http
seq: 5
http:
method: POST
url: https://jsonplaceholder.typicode.com/posts
body:
type: json
data: |-
{
"title": "Мой первый покемон",
"body": "Поймал Пикачу!",
"userId": 1
}
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
forwardAuthorizationHeader: false
docs: |-
5 запрос:
Создания ресурсов
+23
View File
@@ -0,0 +1,23 @@
info:
name: 6 request
type: http
seq: 6
http:
method: GET
url: https://pokeapi.co/api/v2/pokemon/unknown-pokemon-xyz
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
forwardAuthorizationHeader: false
docs: |-
запрос 6:
Вывод ошибки
<br/>
@@ -0,0 +1,10 @@
opencollection: 1.0.0
info:
name: lab-01 - PokeAPI
bundled: false
extensions:
bruno:
ignore:
- node_modules
- .git
@@ -0,0 +1,28 @@
info:
name: request bonus
type: http
seq: 7
http:
method: GET
url: https://pokeapi.co/api/v2/pokemon?limit=3&offset=10
params:
- name: limit
value: "3"
type: query
- name: offset
value: "10"
type: query
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
forwardAuthorizationHeader: false
docs: |-
запрос 7:
Вывод информация о покемонах 3 со смещением 10