Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

Returns a paginated list of all juice reviews. The reviews are returned sorted by newest first.

Parameters

sort_by
string
The field in which the sort should be applied to. Can be only one item. Default is name.
sort
string
The order in which the response should be sorted. Can be set to order by desc or asc. Default is desc.
page
int
The page number. Default is 1.
per
int
The amount of records returned per page. Default is 20.

Returns

Returns a paginated list of juice reviews, and returns an error otherwise.
  curl -H "Authorization: $ACCESS_TOKEN" \
    --request GET \
    --url https://api.onlydrams.app/api/v1/juices/:id/reviews
{
	"total": 10,
	"has_more": false,
	"data": [
		{
			"id": "dafc64f5-1505-495d-b0cc-19ae49ad7562",
			"comment": ".",
			"rating": 3.0,
			"created_at": "22 days ago",
			"user": {
				"id": "646b6861-6c04-426a-8f31-ad888af23923",
				"username": "cask_me_anything",
				"avatar": null
			},
			"juice": {
				"id": "3b16687f-3da6-4827-b446-384284d6b7e1",
				"name": "13th Colony Double Oaked"
			}
		},
		...
	]
}