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

[Feature] Add an attribute for requests #44

Open
bricefriha opened this issue Jun 5, 2024 · 0 comments
Open

[Feature] Add an attribute for requests #44

bricefriha opened this issue Jun 5, 2024 · 0 comments
Assignees
Labels
new feature Unicorn 🦄 a dream feature that we won't loose sleep over if not implemented

Comments

@bricefriha
Copy link
Owner

Main goal

To simplify the process of building requests even more,

Usage

Within a class or interface, having something like:

[service.Request("Post")]
public Response MyEndpoint(QueryParameters qrParameters, object payload = null);

Using MyEndpoint( qrParameters: {{ "foo", "bar" }}); would automatically call {baseUrl}/MyEndpoint?foo=bar as POST

@bricefriha bricefriha added new feature Unicorn 🦄 a dream feature that we won't loose sleep over if not implemented labels Jun 5, 2024
@bricefriha bricefriha self-assigned this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Unicorn 🦄 a dream feature that we won't loose sleep over if not implemented
Projects
None yet
Development

No branches or pull requests

1 participant