Skip to content

Commit

Permalink
Update examples and defaults for 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed May 7, 2024
1 parent fe3fb0b commit d497402
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Note that if you make use of `fake_epoch` that this only changes the start and e

## Examples

Note that these examples are valid for the 2022 schedule.

It is likely useful to stuff the output of these into your JSON visualiser of choice (e.g. pipe to `| jq | less`).

- List the entire schedule: `curl "localhost:8000/schedule"`
Expand Down
2 changes: 1 addition & 1 deletion adapter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct Cli {
#[clap(
long,
env,
default_value = "https://www.emfcamp.org/schedule/2022.json"
default_value = "https://www.emfcamp.org/schedule/2024.json"
)]
upstream_api_url: Url,

Expand Down
2 changes: 1 addition & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct Cli {
long,
env,
value_name = "URL",
default_value = "https://www.emfcamp.org/schedule/2022.json"
default_value = "https://www.emfcamp.org/schedule/2024.json"
)]
api_url: Url,

Expand Down
2 changes: 1 addition & 1 deletion client/examples/now_and_next.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use url::Url;

#[tokio::main]
async fn main() -> Result<()> {
let url = Url::parse("https://www.emfcamp.org/schedule/2022.json")?;
let url = Url::parse("https://www.emfcamp.org/schedule/2024.json")?;

let client = emfcamp_schedule_api::Client::new(url);

Expand Down
2 changes: 1 addition & 1 deletion client/examples/schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use url::Url;

#[tokio::main]
async fn main() -> Result<()> {
let url = Url::parse("https://www.emfcamp.org/schedule/2022.json")?;
let url = Url::parse("https://www.emfcamp.org/schedule/2024.json")?;

let client = emfcamp_schedule_api::Client::new(url);

Expand Down
2 changes: 1 addition & 1 deletion client/examples/venues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use url::Url;

#[tokio::main]
async fn main() -> Result<()> {
let url = Url::parse("https://www.emfcamp.org/schedule/2022.json")?;
let url = Url::parse("https://www.emfcamp.org/schedule/2024.json")?;

let client = emfcamp_schedule_api::Client::new(url);

Expand Down

0 comments on commit d497402

Please sign in to comment.