Skip to content

Commit c5ff6ae

Browse files
committed
📝 Docs: update apicall config example
1 parent 3a14dd3 commit c5ff6ae

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed
Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,44 @@
11
report:
22
title: APICall example
3-
description: An APICall exaple.
3+
description: An APICall example.
44
sections:
55
- title: APICall test
66
subsections:
77
- title: JSONPlaceholder test
88
components:
9-
- title: JSONPlaceholder component
9+
- title: GET request
1010
component_type: apicall
1111
api_url: https://jsonplaceholder.typicode.com/todos/1
12+
method: GET
13+
- title: POST request
14+
component_type: apicall
15+
api_url: https://jsonplaceholder.typicode.com/todos
16+
method: POST
17+
request_body: |
18+
{
19+
"userId": 1,
20+
"title": "Go running",
21+
"completed": false
22+
}
23+
- title: PUT request
24+
component_type: apicall
25+
api_url: https://jsonplaceholder.typicode.com/todos/10
26+
method: PUT
27+
request_body: |
28+
{
29+
"userId": 1,
30+
"title": "Play the guitar",
31+
"completed": true
32+
}
33+
- title: PATCH request
34+
component_type: apicall
35+
api_url: https://jsonplaceholder.typicode.com/todos/10
36+
method: PATCH
37+
request_body: |
38+
{
39+
"title": "Go for a hike"
40+
}
41+
- title: DELETE request
42+
component_type: apicall
43+
api_url: https://jsonplaceholder.typicode.com/todos/10
44+
method: DELETE

0 commit comments

Comments
 (0)