diff --git a/works/lab-01/Bruno_requests.zip b/works/lab-01/Bruno_requests.zip new file mode 100644 index 0000000..b57233b Binary files /dev/null and b/works/lab-01/Bruno_requests.zip differ diff --git a/works/lab-01/Readme.md b/works/lab-01/Readme.md deleted file mode 100644 index 388f028..0000000 --- a/works/lab-01/Readme.md +++ /dev/null @@ -1,15 +0,0 @@ -# Лабораторная работа №1 - -* **Студент:** [ФИО] -* **Вариант / Карточка:** [Например: #025 Pikachu] - ---- - -## Ключевой код -```csharp -// Самая важная часть реализации (методы, структуры, логика) -public class Card -{ - public string Name { get; set; } - public int Hp { get; set; } -} diff --git a/works/lab-01/requests/404-error.yml b/works/lab-01/requests/404-error.yml new file mode 100644 index 0000000..ece5755 --- /dev/null +++ b/works/lab-01/requests/404-error.yml @@ -0,0 +1,18 @@ +info: + name: 404-error + type: http + seq: 1 + +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: Returns 404 error. diff --git a/works/lab-01/requests/info-about-type.yml b/works/lab-01/requests/info-about-type.yml new file mode 100644 index 0000000..9c947bd --- /dev/null +++ b/works/lab-01/requests/info-about-type.yml @@ -0,0 +1,18 @@ +info: + name: info-about-type + type: http + seq: 3 + +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: Returns data about the Pokémon’s type. diff --git a/works/lab-01/requests/list-with-pokemon.yml b/works/lab-01/requests/list-with-pokemon.yml new file mode 100644 index 0000000..ab93f9e --- /dev/null +++ b/works/lab-01/requests/list-with-pokemon.yml @@ -0,0 +1,25 @@ +info: + name: list-with-pokemon + type: http + seq: 6 + +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: Returns the list with pokemon. diff --git a/works/lab-01/requests/opencollection.yml b/works/lab-01/requests/opencollection.yml new file mode 100644 index 0000000..b300d28 --- /dev/null +++ b/works/lab-01/requests/opencollection.yml @@ -0,0 +1,21 @@ +opencollection: 1.0.0 + +info: + name: Lab1 — PokeAPI copy +config: + proxy: + inherit: true + config: + protocol: http + hostname: "" + port: "" + auth: + username: "" + password: "" + bypassProxy: "" +bundled: false +extensions: + bruno: + ignore: + - node_modules + - .git diff --git a/works/lab-01/requests/pokemon-by-id.yml b/works/lab-01/requests/pokemon-by-id.yml new file mode 100644 index 0000000..9627b6d --- /dev/null +++ b/works/lab-01/requests/pokemon-by-id.yml @@ -0,0 +1,18 @@ +info: + name: pokemon-by-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 + +docs: Returns data based on the Pokémon’s ID. diff --git a/works/lab-01/requests/pokemon-by-name.yml b/works/lab-01/requests/pokemon-by-name.yml new file mode 100644 index 0000000..3357378 --- /dev/null +++ b/works/lab-01/requests/pokemon-by-name.yml @@ -0,0 +1,18 @@ +info: + name: pokemon-by-name + type: http + seq: 1 + +http: + method: GET + url: "" + auth: inherit + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5 + forwardAuthorizationHeader: false + +docs: Returns data based on the Pokémon’s name. diff --git a/works/lab-01/requests/pokemon-with-query.yml b/works/lab-01/requests/pokemon-with-query.yml new file mode 100644 index 0000000..e719e24 --- /dev/null +++ b/works/lab-01/requests/pokemon-with-query.yml @@ -0,0 +1,23 @@ +info: + name: pokemon-with-query + type: http + seq: 1 + +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-01/requests/pokemon.yml b/works/lab-01/requests/pokemon.yml new file mode 100644 index 0000000..fc75ac0 --- /dev/null +++ b/works/lab-01/requests/pokemon.yml @@ -0,0 +1,29 @@ +info: + name: pokemon + type: http + seq: 4 + +http: + method: POST + url: https://jsonplaceholder.typicode.com/posts + headers: + - name: Content-Type + value: application/json + body: + type: json + data: |- + { + "title": "Мой первый покемон", + "body": "Поймал Пикачу!", + "userId": 1 + } + auth: inherit + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5 + forwardAuthorizationHeader: false + +docs: Create a JSON file about a Pokémon. diff --git a/works/lab-02/Readme.md b/works/lab-02/Readme.md deleted file mode 100644 index 9756237..0000000 --- a/works/lab-02/Readme.md +++ /dev/null @@ -1,15 +0,0 @@ -# Лабораторная работа №2 - -* **Студент:** [ФИО] -* **Вариант / Карточка:** [Например: #025 Pikachu] - ---- - -## Ключевой код -```csharp -// Самая важная часть реализации (методы, структуры, логика) -public class Card -{ - public string Name { get; set; } - public int Hp { get; set; } -}