Skip to content

Commit ecb30d2

Browse files
authored
feat: Add Metadata to docs (#8)
1 parent 0572658 commit ecb30d2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: src/routes/documentation/+page.svx

+24
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ layout: page
2323
{
2424
id: 'search-breweries',
2525
label: 'Search Breweries'
26+
},
27+
{
28+
id: 'meta-breweries',
29+
label: 'Metadata'
2630
}
2731
];
2832
</script>
@@ -177,3 +181,23 @@ Return a list of names and ids of breweries based on a search term. This endpoin
177181
`https://api.openbrewerydb.org/breweries/autocomplete?query={search}`
178182

179183
<RunButton endpoint="https://api.openbrewerydb.org/breweries/autocomplete?query=dog" />
184+
185+
---
186+
187+
## Metadata
188+
189+
Metadata takes the same filters as [List Breweries](#list-breweries).
190+
191+
`https://api.openbrewerydb.org/breweries/meta`
192+
193+
### Show all breweries meta data
194+
195+
<RunButton endpoint="https://api.openbrewerydb.org/breweries/meta" />
196+
197+
### Show South Korean breweries meta data
198+
199+
<RunButton endpoint="https://api.openbrewerydb.org/breweries/meta?by_country=south_korea" />
200+
201+
### Show micro breweries meta data
202+
203+
<RunButton endpoint="https://api.openbrewerydb.org/breweries/meta?by_type=micro" />

0 commit comments

Comments
 (0)