You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I needed to copy the Application::parseDocComment as this is not a public method to my service. With a little rework this might make it into the core - what do you think?
Currently the description needs to be marked with @description annotation, I was just too lazy to write the parser code for that.
This will output what was described as a good practice here:
This is definitely something that is useful and should be possible, although I'm not sure it should be part of the core as the output format requirements will be different for different people.
Exposing the Resource metadata so that responses can be generated based upon it is something that I'm working on as part of the phpsepc2 branch. Take a look over there, it should get merged in soon.
I am running into this while implementing my rest api. Chrome is requesting OPTIONS, and it does not find anything (405 Method Not Allowed). I did not see any mention of this in any of the instructions on the front page. What is the preferred solution? Do I have to write an @method OPTIONS for every url? If so, what is the appropriate response to an OPTIONS request?
I just fiddled around with tonic a little, I came up with this solution for a generic OPTIONS request handler that will describe the service:
I needed to copy the Application::parseDocComment as this is not a public method to my service. With a little rework this might make it into the core - what do you think?
Currently the description needs to be marked with @description annotation, I was just too lazy to write the parser code for that.
This will output what was described as a good practice here:
http://zacstewart.com/2012/04/14/http-options-method.html
The text was updated successfully, but these errors were encountered: