You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
John E. Vincent edited this page Jan 23, 2011
·
3 revisions
Stabilize API
One of the first milestones should be to stabilize the API around each resource. REST resources and operations are based around this article by Adam Wiggins. Therefore
GET - read
POST - create
PUT - update
DELETE - delete
and those operations act on each object sub-path i.e.
GET /h/hostname - Gets Host hostname
DELETE /s/servicename/hostname - Deletes Service servicename for Host hostname
PUT /c/appname/configname - Updates Configuration configname for Application appname
In the case of ease of use, I've opted to combined POST and PUT. Any PUT operation will optionally create any missing components. Using the PUT example above should appname not exist, it will optionally be created.