Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Provide a functional default implementation of register in Endpoints #7

Closed
PSchmiedmayer opened this issue Apr 4, 2020 · 0 comments · Fixed by #8
Closed

Provide a functional default implementation of register in Endpoints #7

PSchmiedmayer opened this issue Apr 4, 2020 · 0 comments · Fixed by #8
Assignees
Labels
enhancement New feature or request

Comments

@PSchmiedmayer
Copy link
Contributor

Provide a functional default implementation of register(to routes: RoutesBuilder) for an Endpoint to enable Corvus Users to write composable Endpoints without the need to write a register(to routes: RoutesBuilder) function

Context
Example:

/// The `Endpoint` that handles all the API interaction with `Transactions`
final class TransactionsEndpoint: Endpoint {
    var content: Endpoint {
        CRUD<Transaction>("transactions")
    }
}

would require the developer to implement the register function with a default behavior that would be applicable to all Endpoints.

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

Successfully merging a pull request may close this issue.

1 participant