add lab with api without 7 bonus task
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
info:
|
||||
name: delete /pokemons/:id
|
||||
type: http
|
||||
seq: 4
|
||||
tags:
|
||||
- PokedexApi
|
||||
|
||||
http:
|
||||
method: DELETE
|
||||
url: "{{baseUrl}}/pokemons/:id"
|
||||
params:
|
||||
- name: id
|
||||
value: ""
|
||||
type: path
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
forwardAuthorizationHeader: false
|
||||
|
||||
examples:
|
||||
- name: 200 Response
|
||||
description: OK
|
||||
request:
|
||||
url: "{{baseUrl}}/pokemons/:id"
|
||||
method: DELETE
|
||||
params:
|
||||
- name: id
|
||||
value: ""
|
||||
type: path
|
||||
response:
|
||||
status: 200
|
||||
statusText: OK
|
||||
body:
|
||||
type: text
|
||||
data: ""
|
||||
@@ -0,0 +1,6 @@
|
||||
info:
|
||||
name: PokedexApi
|
||||
type: folder
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
@@ -0,0 +1,34 @@
|
||||
info:
|
||||
name: get /hello
|
||||
type: http
|
||||
seq: 1
|
||||
tags:
|
||||
- PokedexApi
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{local}}/hello"
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
forwardAuthorizationHeader: false
|
||||
|
||||
examples:
|
||||
- name: 200 Response
|
||||
description: OK
|
||||
request:
|
||||
url: "{{baseUrl}}/hello"
|
||||
method: GET
|
||||
response:
|
||||
status: 200
|
||||
statusText: OK
|
||||
headers:
|
||||
- name: Content-Type
|
||||
value: text/plain
|
||||
body:
|
||||
type: text
|
||||
data: ""
|
||||
@@ -0,0 +1,35 @@
|
||||
info:
|
||||
name: get /pokemons/:id
|
||||
type: http
|
||||
seq: 2
|
||||
tags:
|
||||
- PokedexApi
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{local}}/pokemons/1"
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
forwardAuthorizationHeader: false
|
||||
|
||||
examples:
|
||||
- name: 200 Response
|
||||
description: OK
|
||||
request:
|
||||
url: "{{baseUrl}}/pokemons/:id"
|
||||
method: GET
|
||||
params:
|
||||
- name: id
|
||||
value: ""
|
||||
type: path
|
||||
response:
|
||||
status: 200
|
||||
statusText: OK
|
||||
body:
|
||||
type: text
|
||||
data: ""
|
||||
@@ -0,0 +1,47 @@
|
||||
info:
|
||||
name: post /pokemons
|
||||
type: http
|
||||
seq: 5
|
||||
tags:
|
||||
- PokedexApi
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{baseUrl}}/pokemons"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"name": "",
|
||||
"type": "",
|
||||
"level": ""
|
||||
}
|
||||
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: ""
|
||||
@@ -0,0 +1,51 @@
|
||||
info:
|
||||
name: put /pokemons/:id
|
||||
type: http
|
||||
seq: 3
|
||||
tags:
|
||||
- PokedexApi
|
||||
|
||||
http:
|
||||
method: PUT
|
||||
url: "{{local}}/pokemons/1"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"name": "",
|
||||
"type": "",
|
||||
"level": ""
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
forwardAuthorizationHeader: false
|
||||
|
||||
examples:
|
||||
- name: 200 Response
|
||||
description: OK
|
||||
request:
|
||||
url: "{{baseUrl}}/pokemons/:id"
|
||||
method: PUT
|
||||
params:
|
||||
- name: id
|
||||
value: ""
|
||||
type: path
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"name": "",
|
||||
"type": "",
|
||||
"level": ""
|
||||
}
|
||||
response:
|
||||
status: 200
|
||||
statusText: OK
|
||||
body:
|
||||
type: text
|
||||
data: ""
|
||||
Reference in New Issue
Block a user