Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Vapor? #57

Open
lmcd opened this issue May 23, 2024 · 3 comments
Open

Support for Vapor? #57

lmcd opened this issue May 23, 2024 · 3 comments

Comments

@lmcd
Copy link

lmcd commented May 23, 2024

I'm working on a Swift project that has a server side, and client side. I'd like to unify the definition of endpoints across both builds.

Something like this would be very useful:

let routesBuilder = ...
let provider = Provider(baseURL: "https://api.example.com/")
let users: Users = UsersAPI(provider: provider)

routesBuilder.addRoutes(from: users)
@joshuawright11
Copy link
Owner

Excellent idea - this is actually in progress. Hoping to have an MVP up soon.

Will keep you posted!

@lmcd
Copy link
Author

lmcd commented May 23, 2024

Great to hear!
I have a feeling my needs my slightly differ from whatever the base implementation is, so would be very useful to have a means of accessing an array of path components (edit: any HTTP method) for each route, so I can process them manually.

@joshuawright11
Copy link
Owner

How do you think your needs might differ? I can try and work something specific in.

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

No branches or pull requests

2 participants