vibe-d / vibe.d

Official vibe.d development
MIT License
1.15k stars 284 forks source link

Implementation of RFC 6570 - URI Template #1094

Open Geod24 opened 9 years ago

Geod24 commented 9 years ago

I was wondering if we had something that does what's described in http://tools.ietf.org/html/rfc6570 ? From what I've looked at (mostly inet), we don't. Just wanted your confirmation before I start implementing it (it's quite useful for the REST interface).

s-ludwig commented 9 years ago

Hm, never seen that before. What would you use it for?

Geod24 commented 9 years ago

One common problem with REST using HTTP+json as a medium is the inability to link in an uniform way. You're supposed to be able to reach every single point of you API from its root. One example to have a specs describing such linking is the HAL specification, which is built on a subset of this RFC for the linking part. But that's needed for a more urgent purpose ATM: just do curl https://api.github.com/, and you'll get a JSON object describing the various endpoints and their name, half of them being template.

s-ludwig commented 9 years ago

Okay, sounds good.