-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Parameters for some HTTP verbs only #72
Comments
Your approach is correct however the URI template is not. It should be:
After that Apiary should display the parameters only for the |
should that be: |
I tried both syntax, no success. I'm using aglio, but copy pasting the blueprint it in apiary.io remains the same: see for instance http://docs.anyfetch.apiary.io/#documents Am I missing something? Sorry |
@Neamar check this example http://docs.temp10.apiary.io Also please make sure to use the "new" Apiary rendered documentation – this is not supported in the older one. |
The correct syntax should be I really need to add the checks for this into API Blueprint parser... |
I activated the new Apiary, but can't seem to make it work. Parameters still appears. On the other end, i plan to keep using @danielgtaylor aglio for the time being. Will the new parser be made available? |
Does this work as you intended http://docs.queryparam2.apiary.io ? |
Indeed it does. Thanks :) The problem was I simplified my use-case and have some parameters for GET, some other for POST. |
That should be eventually supported in Apiary as well. At the moment it handles correctly only the basic situations like the one I have documented. Sorry about the frustration. I feel the urge and plan to address the (lack of) URI templates support in the parser. OK to close? |
Yep, let's close that. Once again thanks for your quick replies |
Is there a timeline or roadmap for when this feature might appear? I'm interested in it as well. |
@synth3tk it should be live soon – we are currently working on a fix of few bugs related to this in Apiary – see #88 (comment) for details |
see apiaryio/api-blueprint#72 for info bump VERSION and Changes for CPAN release
Here is an excerpt from a blueprint:
The three parameters needs to be defined at resource level, else I get a warning:
However, they're only relevant for GET verb.
Am i doing something wrong? How can we define parameters for some verbs only?
The text was updated successfully, but these errors were encountered: