daux.io/docs/cms/01_API/10_Create.md

25 lines
497 B
Markdown
Raw Normal View History

2013-06-12 21:42:00 +02:00
To create an object in a collection, issue a HTTP POST call with the object in the body of the POST.
POST /collections/:collection
2013-06-21 17:49:05 +02:00
##URL Parameters
2013-06-12 21:42:00 +02:00
`:collection` is the key of the collection in the config.
2013-06-21 17:49:05 +02:00
##Example
2013-06-12 21:42:00 +02:00
POST /collections/team
name = Justin
employment = full
bio = Node.js developer
address[city] = Bismarck
address[state] = ND
address[zip] = 58501
...
Note: 'team' is the key used in our example config at the top of this guide
2013-06-21 17:49:05 +02:00
##Returns
2013-06-12 21:42:00 +02:00
The object you just created.