Skip to content

Commit bb7fe85

Browse files
committed
feat: Add size param docs to random endpoint
1 parent d427ae5 commit bb7fe85

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/routes/documentation/index.svx

+12-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ layout: page
1717
label: 'List Breweries'
1818
},
1919
{
20-
'id': 'random-brewery',
21-
'label': 'Random Brewery'
20+
id: 'random-brewery',
21+
label: 'Random Brewery'
2222
},
2323
{
24-
'id': 'search-breweries',
25-
'label': 'Search Breweries'
24+
id: 'search-breweries',
25+
label: 'Search Breweries'
2626
}
2727
];
2828
</script>
@@ -143,6 +143,14 @@ Get a random brewery.
143143

144144
<RunButton endpoint="https://api.openbrewerydb.org/breweries/random" />
145145

146+
### `size`
147+
148+
Number of breweries to return each call.
149+
150+
**Note:** Default is 1. Max per page is 50.
151+
152+
<RunButton endpoint="https://api.openbrewerydb.org/breweries/random?size=3" />
153+
146154
---
147155

148156
## Search Breweries

0 commit comments

Comments
 (0)