Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot API #10

Open
martindale opened this issue Mar 10, 2024 · 0 comments
Open

Snapshot API #10

martindale opened this issue Mar 10, 2024 · 0 comments

Comments

@martindale
Copy link
Contributor

martindale commented Mar 10, 2024

Retrieve global snapshot from HTTP endpoint; GET /snapshots/latest:

{
  heroes: [ ... ],
  mobs: [ ... ]
}

or

{
  clock: 693, // expected value = genesis time * interval (60s)
  created: (new Date()).toISOString(),
  content: {
    heroes: [ ... ],
    mobs: [ ... ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant