@@ -25,27 +25,27 @@ node validate-festivals.js
2525
2626The Cambridge Beer Festival app fetches beverage data from a public API:
2727
28- - ** Base URL:** ` https://data.cambridgebeerfestival.com `
28+ - ** Base URL:** ` https://data.cambeerfestival.app `
2929- ** Format:** JSON
3030- ** Authentication:** None required (public API)
3131
3232### URL Pattern
3333
3434```
35- https://data.cambridgebeerfestival.com /{festival_id}/{beverage_type}.json
35+ https://data.cambeerfestival.app /{festival_id}/{beverage_type}.json
3636```
3737
3838### Examples
3939
4040``` bash
4141# Beer data for CBF 2025
42- curl https://data.cambridgebeerfestival.com /cbf2025/beer.json
42+ curl https://data.cambeerfestival.app /cbf2025/beer.json
4343
4444# Cider data for CBF 2025
45- curl https://data.cambridgebeerfestival.com /cbf2025/cider.json
45+ curl https://data.cambeerfestival.app /cbf2025/cider.json
4646
4747# Winter festival beer data
48- curl https://data.cambridgebeerfestival.com /cbfw2025/beer.json
48+ curl https://data.cambeerfestival.app /cbfw2025/beer.json
4949```
5050
5151## Schemas
@@ -93,7 +93,7 @@ const ajv = new Ajv();
9393addFormats (ajv);
9494const validate = ajv .compile (schema);
9595
96- const data = await fetch (' https://data.cambridgebeerfestival.com /cbf2025/beer.json' )
96+ const data = await fetch (' https://data.cambeerfestival.app /cbf2025/beer.json' )
9797 .then (r => r .json ());
9898
9999if (validate (data)) {
@@ -113,7 +113,7 @@ import requests
113113with open (' beer-list-schema.json' ) as f:
114114 schema = json.load(f)
115115
116- data = requests.get(' https://data.cambridgebeerfestival.com /cbf2025/beer.json' ).json()
116+ data = requests.get(' https://data.cambeerfestival.app /cbf2025/beer.json' ).json()
117117
118118jsonschema.validate(data, schema) # Raises on error
119119print (' Valid!' )
0 commit comments