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

URL with placeholder #365

Open
amincheloh opened this issue Sep 20, 2014 · 1 comment · May be fixed by #931
Open

URL with placeholder #365

amincheloh opened this issue Sep 20, 2014 · 1 comment · May be fixed by #931

Comments

@amincheloh
Copy link

Hello,

It would be nice if I could build request HTTP API like

http://api.server/v1/:user_id/info

with

Ion.with(context).load("http://api.server/v1/:user_id/info")
.withParameter(":user_id", "1234")
.asJsonObject();

I think with will make code look cleaner and easier to read.

Thanks

@koush
Copy link
Owner

koush commented Sep 24, 2014

Could also do .load(String format, String... args) maybe?

@moeiniamir moeiniamir linked a pull request Jun 24, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants