News for hackers. Stuff that matters.
Re:Problems with Swagger by macca321 on Wednesday April 05, 2017 @06:04AM (#14040953)
You're hard-coding 'terms' from a hypermedia 'vocab'.

The thing is, if you use well-known terms, your client will work against ANY API that uses those terms, not just the one that you coded it to work against.

Not only that, but the APIs will have flexibility to move things around, or delegate functionality to other hosts by linking through.

As for the cost of walking the chain, once a target resource has been found the can be cached, and you only need to rewalk if the resource 404/410s.

There are no comments on this comment yet.