Initial upload: API Mock CLI v0.1.0
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / type-check (push) Has been cancelled
CI / build (push) Has been cancelled
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / type-check (push) Has been cancelled
CI / build (push) Has been cancelled
This commit is contained in:
32
tests/fixtures/endpoints.json
vendored
Normal file
32
tests/fixtures/endpoints.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"version": "1.0.0",
|
||||||
|
"endpoints": [
|
||||||
|
{
|
||||||
|
"path": "/api/users",
|
||||||
|
"method": "GET",
|
||||||
|
"name": "List Users",
|
||||||
|
"response": {
|
||||||
|
"status_code": 200,
|
||||||
|
"body": {
|
||||||
|
"users": [
|
||||||
|
{"id": 1, "name": "Alice"},
|
||||||
|
{"id": 2, "name": "Bob"}
|
||||||
|
],
|
||||||
|
"total": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "/api/users/{id}",
|
||||||
|
"method": "GET",
|
||||||
|
"name": "Get User",
|
||||||
|
"response": {
|
||||||
|
"status_code": 200,
|
||||||
|
"body": {
|
||||||
|
"id": "{{request.path.id}}",
|
||||||
|
"name": "User {{request.path.id}}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user