Multiplatform Ktor schema declaration • opensavvy.spine.api • ResolvedEndpoint
ResolvedEndpoint¶
class ResolvedEndpoint<E : AnyEndpoint> : Addressed
A resolved Endpoint.
The AnyEndpoint interface represents the declaration of an endpoint. For example, GET /api/users/{user} is not a 'real' endpoint: each user has its own endpoint. This class, ResolvedEndpoint, represents 'real' endpoints: GET /api/users/111 and GET /api/users/222 are possible values of this class.
To resolve an endpoint, start by resolving its resource then follow with the endpoint: