Entirely different point of view: Joe Gregorio pointed out that WADL is a step in the wrong direction because it leads you to design custom, brittle media types and interactions. http://bitworking.org/news/193/Do-we-need-WADL. Although there is no general-purpose standard hypermedia type yet, there are several drafts, like hal, uber, hydra, siren. There is also atom and collection+json.
Did you check if they cover your needs?
--
You received this message because you are subscribed to the Google Groups "API Craft" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-craft+...@googlegroups.com.
Visit this group at http://groups.google.com/group/api-craft.
For more options, visit https://groups.google.com/d/optout.
/models/models/{modelId}/models/{modelId}/relationships
you only have to document the URI parameter {models} one time, unlike Swagger where there is no connectionbetween these
--
Markus Lanthaler
@markuslanthaler
--
Markus Lanthaler
@markuslanthaler
<snip>
Its not like its wrong to do it either way - its more of a personal preference.
</snip>
+1
Darrel
My perspective was that people are already creating these design
formats. Wouldn't it be cool to be able to leverage that existing
work to generate a home document. Even if they are not the most ideal
format.
I've worked with json-home quite a bit and only being able to have one
instance of a particular link relation does make sense if you are
prepared to swallow the entire hypermedia pill but it doesn't work
well for a discovery document for URL based APIs.
Maybe I'll bump this up my to-do list a bit and maybe I'll have
something to show at api-craft or Restfest.
Darrel
On Tue, Jul 8, 2014 at 2:25 PM, mca <m...@amundsen.com> wrote:
> right - quite possible to use these description documents at runtime. IME,
> the current designs don't lend themselves well to this, but that doesn't
> mean 1) i am right or 2) we couldn't find other descirption formats that DO
> work well at runtime.
>
> i'd love to see some work in this space.
>
>
>
> mca
> +1.859.757.1449
> skype:mca.amundsen
> http://amundsen.com/blog/
> http://twitter.com/mamund
> https://github.com/mamund
> http://linkedin.com/in/mamund
>
>
>
> On Tue, Jul 8, 2014 at 2:23 PM, Darrel Miller <darrel...@gmail.com>
> wrote:
>>
>> Mike,
>>
>> Do the first group have to be design time only? I've been toying with
>> the idea of writing some media type parsers for WADL,RAML, SWAGGER et
>> al and seeing how they would work as a home document discovery page.
>> Is there a fundamental reason why they couldn't be used for runtime
>> discovery?
>>
>> Darrel
>>
>> On Mon, Jul 7, 2014 at 2:54 PM, mca <m...@amundsen.com> wrote:
>> > HAL, UBER, Cj, Siren, etc. play a different role than WADL, RAML, etc.
>> >
>> > those in the first group are runtime representation formats
>> > those in the second group are design/build time description formats
>> >
>> >
>> >
>> >
>> > mca
>> > +1.859.757.1449
>> > skype:mca.amundsen
>> > http://amundsen.com/blog/
>> > http://twitter.com/mamund
>> > https://github.com/mamund
>> > http://linkedin.com/in/mamund
>> >
>> >
>> >
Even if your APIs are fully compliant with all of that goodness, you still need to *build* them.You may find RAML a useful part of the puzzle for documenting what you are going to build.Then if you want to try and encourage developers to build clients that use your hypermedia controls, don't publicly release your RAML.
It should be fairly simple to generalize that into some sort of DSL to generate HTML/PDF/other from - but I am having a hard time seeing what other benefits it could yield. Ideas anyone?
On 17 Mar 2015, at 4:12, Oliver Wolf wrote:
> So the bottomline is: I think you’re correct in stating that RAML is not appropriate for documenting a hypermedia API. Hypermedia APIs should be documented in terms of describing the semantics of link relation types, not in terms of describing the resource structure.
It'd be really good is there WAS a a raml/swagger like framework FOR documenting hypermedia based APIs - in a consistent manner.