From ca43a5fc94eae08678966d35590605c17fd19eec Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 29 Jan 2026 13:53:56 +0000 Subject: [PATCH] Initial upload: API Mock CLI v0.1.0 --- tests/fixtures/endpoints.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/fixtures/endpoints.json diff --git a/tests/fixtures/endpoints.json b/tests/fixtures/endpoints.json new file mode 100644 index 0000000..2303df8 --- /dev/null +++ b/tests/fixtures/endpoints.json @@ -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}}" + } + } + } + ] +}