News for hackers. Stuff that matters.
Re:Everything old is new again: Microservices by naasking on Wednesday May 09, 2018 @07:55AM (#17029107)
> Then they realized that they needed some method to make a REST Api discoverable

Which is silly, because REST is discoverable by definition, since you should be using hypermedia. And if your API is not discoverable, that's a good sign your service is not actually REST.

Re:Everything old is new again: Microservices by scarface74 on Wednesday May 09, 2018 @08:19AM (#17029221)
The "No True Scotsman" defense seems to be used a lot for REST. Don't get me wrong, I try to stay RESTful as much as possible but hardly anyone writes "truely RESTful APIs".
Re:Everything old is new again: Microservices by naasking on Wednesday May 09, 2018 @09:55AM (#17029812)
> but hardly anyone writes "truely RESTful APIs".

That's pretty much what I said! Web frameworks don't help you at all in this regard, which is why REST is unncessarily difficult to implement. Most web frameworks give you just enough for HTTP-based RPC.

Re:Everything old is new again: Microservices by LargeWu on Wednesday May 09, 2018 @10:29AM (#17030095)
REST is meant to be discoverable by humans, but actually coding to a "true" REST system, using only hypermedia, is a damn nightmare.
Re:Everything old is new again: Microservices by naasking on Wednesday May 09, 2018 @10:55AM (#17030293)
Fielding's thesis doesn't really specify anything in particular about human discoverability, except that REST systems are typically user agent driven compared to typical distributed systems.

As for the nightmare of REST, the real question is whether this difficult is intrinsic, or merely a product of immature tooling and poor understanding. No web framework I've seen, apart from the Waterken server, actually helps you achieve REST. They're largely all HTTP-based RPC frameworks.