Skip to content

Commit 628913b

Browse files
committed
chore: remove /v1/categories/count mapping from the example
Keep it short by having only methods for CRUD operations.
1 parent a6fde35 commit 628913b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

README.md

-5
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ Generates the endpoints (or a whole app) from a mapping (SQL query -> URL)
1414
1. Create a mapping file `endpoints.yaml`
1515
```console
1616
$ vim endpoints.yaml
17-
- path: /v1/categories/count
18-
get: SELECT COUNT(*) AS counter FROM categories
19-
2017
- path: /v1/categories
2118
get_list: >-
2219
SELECT id, name, name_ru, slug
@@ -70,8 +67,6 @@ Generates the endpoints (or a whole app) from a mapping (SQL query -> URL)
7067

7168
1. Test that it works
7269
```console
73-
$ curl http://localhost:3000/v1/categories/count
74-
{"counter":0}
7570
$ curl -i -H 'Content-Type: application/json' -d '{"name":"Sport","name_ru":"Спорт","slug":"sport","user_id":100}' http://localhost:3000/v1/categories
7671
HTTP/1.1 204 No Content
7772
ETag: W/"a-bAsFyilMr4Ra1hIU5PyoyFRunpI"

0 commit comments

Comments
 (0)