Skip to content

Commit 18b0b50

Browse files
Change PRESET to No and remove curl testing section
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
1 parent c90ddc1 commit 18b0b50

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

samples/full-stack-no-backend/README.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,6 @@ Version|Date|Comments
4040
- Open http://localhost:3000 in your browser
4141
- The app auto-connects using the default API key (`dev-proxy-demo-key`)
4242

43-
### Testing the API with curl
44-
45-
You can also test the API directly using curl:
46-
47-
```bash
48-
# Get all tasks
49-
curl -ikx http://127.0.0.1:8000 https://api.tasks.local/tasks -H "x-api-key: dev-proxy-demo-key"
50-
51-
# Get a single task
52-
curl -ikx http://127.0.0.1:8000 https://api.tasks.local/tasks/1 -H "x-api-key: dev-proxy-demo-key"
53-
54-
# Create a new task
55-
curl -ikx http://127.0.0.1:8000 https://api.tasks.local/tasks -H "x-api-key: dev-proxy-demo-key" -H "Content-Type: application/json" -d '{"id": 6, "title": "New task", "description": "Task description", "status": "pending", "priority": "high"}'
56-
57-
# Update a task
58-
curl -ikx http://127.0.0.1:8000 https://api.tasks.local/tasks/1 -X PATCH -H "x-api-key: dev-proxy-demo-key" -H "Content-Type: application/json" -d '{"status": "completed"}'
59-
60-
# Delete a task
61-
curl -ikx http://127.0.0.1:8000 https://api.tasks.local/tasks/1 -X DELETE -H "x-api-key: dev-proxy-demo-key"
62-
63-
# Test with invalid API key (should return 401)
64-
curl -ikx http://127.0.0.1:8000 https://api.tasks.local/tasks -H "x-api-key: invalid-key"
65-
```
66-
6743
## Architecture
6844

6945
```

samples/full-stack-no-backend/assets/sample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"key": "PRESET",
24-
"value": "Yes"
24+
"value": "No"
2525
},
2626
{
2727
"key": "MOCKS",

0 commit comments

Comments
 (0)