We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POST: /event Accept: Application/vnd.siren+json Content-Type: Application/Json Token: foo-bar-baz { "name": "Event name", "user_can_update_subbect": Bool, "user_can_add_subbect": Bool }
Use token to identify user and define author and user_id
author
user_id
Status: 201 Created Content-Type: Application/vnd.siren+json { "class": ["event"], "properties": { "_id": ObjectId("59b6ffa1fea7bb5b5768d4c0"), "name": "Event name", "created_at": ISODate("2017-09-20T12:41:39.000+0000"), "user_can_update_subject": Bool, "user_can_add_subject": Bool, "status": "Status name", "updated_at": "2016-09-09 10:10:10" }, "entities": [ { "class": ["user", "author"], "rel": [ "http://x.io/rels/user" ], "properties": { "user_id": "foo-bar-baz", "name": "Peter Joseph" }, "links": [ { "rel": [ "self" ], "href": "http://api.x.io/user/:userId" } ] } ], "actions" : [ { "name": "edit-event", "title": "Edit event", "method": "PUT", "href": "http://api.x.io/event/:eventid", "type": "application/json", "fields": [ { "name": "name", "type": "text", "value": "Event name" }, { "name": "user_can_update_subject", "type": "bool", "value": "true" }, { "name": "user_can_add_subject", "type": "bool", "value": "true" }, { "name": "status", "type": "text", "value": "Status name" }, ] }, { "name": "delete-event", "title": "Delete event", "method": "DELETE", "href": "http://api.x.io/event/:eventid" }, ], "links": [ { "rel": ["self"], "href": "http://api.x.io/event/:eventId" } { "rel": ["collection"], "href": "http://api.x.io/event/:eventId/subjects" } ] }
See #34 to event document definition
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Request
Use token to identify user and define
author
anduser_id
Response
See #34 to event document definition
The text was updated successfully, but these errors were encountered: