Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Add endpoint types with versions & remove routes #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

UCDFiddes
Copy link
Collaborator

This adds a new type Endpoint<pathname, APIVersion>. Currently depending on the inputted pathname and version the outputted type will resolve to a valid response from the API depending on the arguments used. This version also removes the previously known Routes<pathname> in favour of the newer endpoint type.

Furthermore the APIVersion enum includes latest as an option, however it should be advised to not use latest as the types may not be accurate.

@UCDFiddes UCDFiddes requested a review from CreeperG16 April 8, 2024 11:00
Copy link
Contributor

@CreeperG16 CreeperG16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants