Skip to content

Expose endpoint with version/hash #1432

Description

@Naramsim

It would be useful for caching purposes to expose an endpoint that returns info on the current pokeapi deployed version. Something like:

GET /api/v2/meta

{
  "deploy_date": "UTC date",
  "hash": "hash value that changes at every deploy",
  "tag": "if the version is tagged, the tag"
}

One could use the hash value to know whether to flush the cache or not.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions