Skip to content

Add MetaService.ListAPIVersions for GET /versions #4420

Description

@kyungseopk1m

GET /versions returns the REST API versions the server supports, and MetaService has no method for it:

https://docs.github.com/rest/meta/meta?apiVersion=2022-11-28#get-all-api-versions

The response is a JSON array of date strings, so it maps to []string without adding a type. That matches GitignoresService.List, which backs the gitignore/get-all-templates operation and has the same signature and lack of pagination.

Note this is unrelated to the apiVersionMin/apiVersionMax constants in github.go, which are client side and stay hardcoded.

I plan to send a PR for this.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions