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

Implement Action "to" as Expressions of ressource rather than string #4

Open
tjaskula opened this issue Apr 15, 2020 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@tjaskula
Copy link
Contributor

Today in order to define ressource templates matching methods, URI and action we use strings everywhere like that

Action(6, "PUT", "/users/{userId}", "changeUser(string userId, body:Vlingo.Http.Tests.Sample.User.UserData userData)", "Vlingo.Http.Tests.Sample.User.UserDataMapper");

It would be much nicer instead of using magic string "changeUser(string userId, body:Vlingo.Http.Tests.Sample.User.UserData userData)" to use the expression tree

(resource, userId, userData) => resource.ChangeUser(userId, userData)

We could also replace magic string "PUT" by an enum

@tjaskula tjaskula added enhancement New feature or request good first issue Good for newcomers labels Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant