Skip to content

Commit a8f7579

Browse files
authored
docs: remove the example for counting categories in a collection
In order to have a shorter example, I removed a similar case.
1 parent f02daf7 commit a8f7579

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ Generates the endpoints (or a whole app) from a mapping (SQL query -> URL)
1717
- path: /v1/categories/count
1818
get: SELECT COUNT(*) AS counter FROM categories
1919

20-
- path: /v1/collections/:collectionId/categories/count
21-
get: >-
22-
SELECT COUNT(DISTINCT s.category_id) AS counter
23-
FROM collections_series cs
24-
JOIN series s
25-
ON s.id = cs.series_id
26-
WHERE cs.collection_id = :collectionId
27-
2820
- path: /v1/categories
2921
get_list: >-
3022
SELECT id, name, name_ru, slug
@@ -78,8 +70,6 @@ Generates the endpoints (or a whole app) from a mapping (SQL query -> URL)
7870
```console
7971
$ curl http://localhost:3000/v1/categories/count
8072
{"counter":3}
81-
$ curl http://localhost:3000/v1/collections/1/categories/count
82-
1
8373
$ curl -i -H 'Content-Type: application/json' -d '{"name":"Sport","nameRu":"Спорт","slug":"sport","userId":100}' http://localhost:3000/v1/categories
8474
HTTP/1.1 204 No Content
8575
ETag: W/"a-bAsFyilMr4Ra1hIU5PyoyFRunpI"

0 commit comments

Comments
 (0)