Skip to content

Ability to retrieve the URL for an operation #1926

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

Closed
lubiah opened this issue Apr 8, 2025 · 5 comments
Closed

Ability to retrieve the URL for an operation #1926

lubiah opened this issue Apr 8, 2025 · 5 comments
Labels
feature 🚀 New feature or request

Comments

@lubiah
Copy link

lubiah commented Apr 8, 2025

Description

I am currentlying using msw to mock my server and I want want to ensure the paths I use inside msw is the same as the one the client is calling.

@lubiah lubiah added the feature 🚀 New feature or request label Apr 8, 2025
@mrlubos
Copy link
Member

mrlubos commented Apr 8, 2025

@lubiah What have you tried so far?

@lubiah
Copy link
Author

lubiah commented Apr 8, 2025

I searched if there was a plugin which would allow me to access the url, turns out it's part of the post/get object in the sdk and it's impossible to get it out

@mrlubos
Copy link
Member

mrlubos commented Apr 8, 2025

And I assume this isn't good enough? https://heyapi.dev/openapi-ts/clients/fetch#build-url

@mrlubos
Copy link
Member

mrlubos commented Apr 8, 2025

Or can't you use the generated interfaces?

@lubiah
Copy link
Author

lubiah commented Apr 8, 2025 via email

@mrlubos mrlubos closed this as completed Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🚀 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants