File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,11 @@ Get all the posts. Returns a list of [blog post objects](#blog-post-object) with
29
29
30
30
### Optional URL parameters
31
31
32
- | Name | Type | Description |
33
- | -------- | ------ | ---------------------------------------- |
34
- | category | string | post's category |
35
- | type | string | post's type (article / tutorial / flash) |
32
+ | Name | Type | Description |
33
+ | ---------- | ------ | ------------------------------------------------------ |
34
+ | category | string | post's category |
35
+ | type | string | post's type (article / tutorial / flash) |
36
+ | search | string | search for articles (text inside title or description) |
36
37
37
38
This endpoint uses [ pagination] ( ../topics/Pagination.md ) .
38
39
@@ -42,6 +43,12 @@ This endpoint uses [pagination](../topics/Pagination.md).
42
43
43
44
Get the last published post. Returns a [ blog post object] ( #blog-post-object ) .
44
45
46
+ ## Get random post
47
+
48
+ ` GET /blog-posts/random `
49
+
50
+ Get a random post among all our collection. Returns a [ blog post object] ( #blog-post-object ) .
51
+
45
52
## Create post
46
53
47
54
` POST /blog-posts `
You can’t perform that action at this time.
0 commit comments