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 path parameters #639

Open
sysmat opened this issue Oct 24, 2023 · 2 comments
Open

url path parameters #639

sysmat opened this issue Oct 24, 2023 · 2 comments

Comments

@sysmat
Copy link

sysmat commented Oct 24, 2023

  • I'm new to this lib is it possible to have URL path parameters?
  • my backend in java is @Path("users/{username}")
  • in clojure I try like this, but not working
(defn fetch-user [username user pass]
  (http/get (url "users/:username")
            { :basic-auth [user pas]
              :headers {"Accept" "application/json"}
              :params {:username username}
              }))
@nsadeh
Copy link

nsadeh commented Dec 27, 2023

If you mean query parameters (https://en.wikipedia.org/wiki/Query_string), you can use :query-params and pass in string key/value pairs

@sysmat
Copy link
Author

sysmat commented Dec 28, 2023

not query parameters path parameter like in java @PathParam

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