deconst / content-service

An API for storing, indexing and retrieving documentation
MIT License
4 stars 9 forks source link

Move the content ID to the URL for content storage #15

Closed smashwilson closed 9 years ago

smashwilson commented 9 years ago

It feels a little cleaner to me to have the content ID as a URL path parameter for the content PUT call. It's more consistent with the other content handlers and with standard PUT semantics (as I understand them). It also lets us treat the entire request body as the document to store, which is more convenient.