diff --git a/works/lab-02/Lab1 — PokeAPI/.gitignore b/works/lab-02/Lab1 — PokeAPI/.gitignore new file mode 100644 index 0000000..e19311f --- /dev/null +++ b/works/lab-02/Lab1 — PokeAPI/.gitignore @@ -0,0 +1,9 @@ +# Secrets +.env* + +# Dependencies +node_modules + +# OS files +.DS_Store +Thumbs.db \ No newline at end of file diff --git a/works/lab-02/Lab1 — PokeAPI/Untitled.yml b/works/lab-02/Lab1 — PokeAPI/Untitled.yml new file mode 100644 index 0000000..a2253ff --- /dev/null +++ b/works/lab-02/Lab1 — PokeAPI/Untitled.yml @@ -0,0 +1,16 @@ +info: + name: Untitled + type: http + seq: 1 + +http: + method: GET + url: "" + auth: inherit + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5 + forwardAuthorizationHeader: false diff --git a/works/lab-02/Lab1 — PokeAPI/opencollection.yml b/works/lab-02/Lab1 — PokeAPI/opencollection.yml new file mode 100644 index 0000000..58c2d98 --- /dev/null +++ b/works/lab-02/Lab1 — PokeAPI/opencollection.yml @@ -0,0 +1,10 @@ +opencollection: 1.0.0 + +info: + name: Lab1 — PokeAPI +bundled: false +extensions: + bruno: + ignore: + - node_modules + - .git diff --git a/works/lab-02/Lab1 — PokeAPI/Информация о типе (Electric).yml b/works/lab-02/Lab1 — PokeAPI/Информация о типе (Electric).yml new file mode 100644 index 0000000..7ef0622 --- /dev/null +++ b/works/lab-02/Lab1 — PokeAPI/Информация о типе (Electric).yml @@ -0,0 +1,16 @@ +info: + name: Информация о типе (Electric) + 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 diff --git a/works/lab-02/Lab1 — PokeAPI/Несуществующий покемон (Ошибка 404).yml b/works/lab-02/Lab1 — PokeAPI/Несуществующий покемон (Ошибка 404).yml new file mode 100644 index 0000000..5e270ec --- /dev/null +++ b/works/lab-02/Lab1 — PokeAPI/Несуществующий покемон (Ошибка 404).yml @@ -0,0 +1,16 @@ +info: + name: Несуществующий покемон (Ошибка 404) + 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 diff --git a/works/lab-02/Lab1 — PokeAPI/Создать пост.yml b/works/lab-02/Lab1 — PokeAPI/Создать пост.yml new file mode 100644 index 0000000..67640f3 --- /dev/null +++ b/works/lab-02/Lab1 — PokeAPI/Создать пост.yml @@ -0,0 +1,16 @@ +info: + name: Создать пост + type: http + seq: 5 + +http: + method: POST + url: https://jsonplaceholder.typicode.com/posts + auth: inherit + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5 + forwardAuthorizationHeader: false diff --git a/works/lab-02/Lab1 — PokeAPI/Список покемонов (Бонус — смещение).yml b/works/lab-02/Lab1 — PokeAPI/Список покемонов (Бонус — смещение).yml new file mode 100644 index 0000000..e29c4a7 --- /dev/null +++ b/works/lab-02/Lab1 — PokeAPI/Список покемонов (Бонус — смещение).yml @@ -0,0 +1,23 @@ +info: + name: Список покемонов (Бонус — смещение) + 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 diff --git a/works/lab-02/Lab1 — PokeAPI/Список покемонов (пагинация).yml b/works/lab-02/Lab1 — PokeAPI/Список покемонов (пагинация).yml new file mode 100644 index 0000000..af057dd --- /dev/null +++ b/works/lab-02/Lab1 — PokeAPI/Список покемонов (пагинация).yml @@ -0,0 +1,23 @@ +info: + name: Список покемонов (пагинация) + 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 diff --git a/works/lab-02/Lab1 — PokeAPI/получить покемона по ID.yml b/works/lab-02/Lab1 — PokeAPI/получить покемона по ID.yml new file mode 100644 index 0000000..69f3047 --- /dev/null +++ b/works/lab-02/Lab1 — PokeAPI/получить покемона по ID.yml @@ -0,0 +1,16 @@ +info: + name: получить покемона по ID + 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