Closed musjj closed 1 month ago
In Hono, you can inspect an API url like this:
let url = client.api.posts.$url() console.log(url.pathname) // `/api/posts` url = client.api.posts[':id'].$url({ param: { id: '123', }, }) console.log(url.pathname) // `/api/posts/123`
It would be nice if you can do this with openapi-fetch. Maybe the syntax can look like:
openapi-fetch
client.URL("/blogposts/{post_id}", { params: { post_id: "my-post" }, query: { version: 2 }, });
Hey @musjj, just want to make sure this request is in the correct repository? openapi-fetch does not belong to Hey API
WHOOPS, sorry about that.
Description
In Hono, you can inspect an API url like this:
It would be nice if you can do this with
openapi-fetch
. Maybe the syntax can look like: