generated from admin/template
Added the requests
This commit is contained in:
Binary file not shown.
@@ -1,15 +0,0 @@
|
|||||||
# Лабораторная работа №1
|
|
||||||
|
|
||||||
* **Студент:** [ФИО]
|
|
||||||
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Ключевой код
|
|
||||||
```csharp
|
|
||||||
// Самая важная часть реализации (методы, структуры, логика)
|
|
||||||
public class Card
|
|
||||||
{
|
|
||||||
public string Name { get; set; }
|
|
||||||
public int Hp { get; set; }
|
|
||||||
}
|
|
||||||
@@ -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.
|
||||||
@@ -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.
|
||||||
@@ -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.
|
||||||
@@ -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
|
||||||
@@ -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.
|
||||||
@@ -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.
|
||||||
@@ -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
|
||||||
@@ -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.
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# Лабораторная работа №2
|
|
||||||
|
|
||||||
* **Студент:** [ФИО]
|
|
||||||
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Ключевой код
|
|
||||||
```csharp
|
|
||||||
// Самая важная часть реализации (методы, структуры, логика)
|
|
||||||
public class Card
|
|
||||||
{
|
|
||||||
public string Name { get; set; }
|
|
||||||
public int Hp { get; set; }
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user