Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Conversation

onekiloparsec
Copy link

Hi. This is a tricky thing, and I am skeptical about its acceptance success, but who knows?

The main goal of this PR is to add an options method, similarly to get and others. I am aware of the CORS options preflight requests. But still, I am trying to auto-document my REST apis through the overlooked OPTIONS method. In other words, I want to make specific OPTIONS requests to my API.

I have tried to use the creation of resources. But I spent hours trying to change headers of existing resources (to set the Authorisation header), to no avail. Once the resource is made, I couldn't find a way to change its headers. I use the global accessor Vue.http inside a vuex module to make my API requests.

The only solution I found is to add the method I need directly inside vue-resource.

If you have any better idea on how to deal with this, I'll be happy to hear about it!
Thanks anyway.

Signed-off-by: onekiloparsec <cedric@onekilopars.ec>
Signed-off-by: onekiloparsec <cedric@onekilopars.ec>
Signed-off-by: onekiloparsec <cedric@onekilopars.ec>
Signed-off-by: onekiloparsec <cedric@onekilopars.ec>
@vladyslav2
Copy link

@steffans Any ideas for implement OPTIONS method?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants