[rest-practices] text/html representation?
Bill Burke
bburke at redhat.com
Wed Apr 28 12:14:30 UTC 2010
A weird idea has been going through my head lately. What if, for when
its practical, have your edit/action links accept
application/x-www-form-urlencoded, and the rel attribute of the link
points to an html form describing the interaction.
Mark McLoughlin wrote:
> Hey,
>
> I was trying to think of some simple advice for people designing REST
> APIs - things like "if you're documenting the URI scheme, it's not
> HATEOAS"
>
> Would it be a worthwhile exercise for API designers to add a text/html
> representation of their resources? with forms for action buttons etc.
>
> That way you could be confident your really API is hypertext driven. It
> would also be a nice way for API users to browse the API
>
> Just a thought ...
>
> Cheers,
> Mark.
>
> _______________________________________________
> rest-practices mailing list
> rest-practices at redhat.com
> https://www.redhat.com/mailman/listinfo/rest-practices
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
More information about the rest-practices
mailing list