0

Is REST without the use hypermedia still REST? In other words, is the hypermedia part of the uniform interface constraint of REST required for a true RESTful architecture?

The way I understand it, it is not hypermedia itself that is a constraint of REST but rather the "uniform interface". So could I have a RESTful uniform interface without hypermedia?

bitbonk
  • 48,890
  • 37
  • 186
  • 278

2 Answers2

1

Yes. It's required. The only optional constraint is "code on demand," for example a server linking to Javascript to be executed by the client.

Jonathan W
  • 3,759
  • 19
  • 20
  • But it's not hypermedia that is the constraint but "uniform interface" isn't it possible to have a uniform interface without hypermedia? – bitbonk Dec 07 '13 at 06:45
  • 2
    No. Not the way Fielding defines it. There are four sub-requirements for uniform interface, and HATEOAS is one of them. – Jonathan W Dec 07 '13 at 15:33
1

Hypermedia is certainly one of the constraints in REST. Roy Fielding makes that very clear: http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven.

Try also to search for "hypermedia" inside his thesis: http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm

This blog post tries to explain the benefits of hypermedia: http://soabits.blogspot.no/2013/12/selling-benefits-of-hypermedia.html (disclaimer: I wrote it).

Jørn Wildt
  • 4,274
  • 1
  • 21
  • 31