-
Notifications
You must be signed in to change notification settings - Fork 1
Apiary.io Blueprint Doc
FORMAT: 1A
Todo API for Hack Day at Rest Fest 2014
Root page for API
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/", "method": "GET", "title": "Home" }, "userCreate": { "href": "/users", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Signup Form", "data": { "userName": { "minlength": 4, "maxlength": 30, "type": "string", "required": true }, "userPassword": { "minlength": 4, "maxlength": 30, "type": "string", "required": true }, "givenName": { "minlength": 4, "maxlength": 100, "type": "string", "required": false }, "familyName": { "minlength": 4, "maxlength": 100, "type": "string", "required": false }, "avatarUrl": { "minlength": 4, "maxlength": 200, "type": "string", "required": false } } } }, "message": "Welcome to the RESTFest 2014 TODO List App! Please create a user." }
All resources related to users
Users Resource
-
Response 201 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "title": "This Collection" }, "first": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories?offset=0", "title": "First Page of this Collection" }, "prev": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories?offset=0", "title": "Previous Page of this Collection" }, "next": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories?offset=0", "title": "Next Page of this Collection" }, "last": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories?offset=0", "title": "Last Page of this Collection" }, "categoryCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create A Category", "data": { "categoryTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } } }, "_embedded": { "users": [ { "_links": { "self": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "method": "GET" }, "completedTodoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/completedTodos", "method": "GET" }, "incompleteTodoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/incompleteTodos", "method": "GET" }, "todoCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } }, "categoryList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "method": "GET" }, "categoryCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create A Category", "data": { "categoryTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "userEdit": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit User", "data": { "userName": { "minlength": 4, "maxlength": 30, "type": "string", "required": true }, "userPassword": { "minlength": 4, "maxlength": 30, "type": "string", "required": true }, "givenName": { "minlength": 4, "maxlength": 100, "type": "string", "required": false }, "familyName": { "minlength": 4, "maxlength": 100, "type": "string", "required": false }, "avatarUrl": { "minlength": 4, "maxlength": 200, "type": "string", "required": false } } }, "userDelete": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "DELETE", "title": "Delete User" } }, "userid": "f371d6e3-1a54-450d-99a2-85adfbbabed1", "userName": "john.doe", "giveName": "John", "familyName": "Doe", "avatarUrl": "http://example.com/avatar.jpg", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" } ] }, "total_items": "1", "returned_items": 1, "limit": 20, "offset": 0 }
-
Request Create a User (application/json)
{ "userName": "john.doe", "userPassword": "sfljwoenadsfonsaof", "giveName": "John", "familyName": "Doe", "avatarUrl": "http://example.com/avatar.jpg" }
-
Response 201 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "method": "GET" }, "completedTodoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/completedTodos", "method": "GET" }, "incompleteTodoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/incompleteTodos", "method": "GET" }, "todoCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } }, "categoryList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "method": "GET" }, "categoryCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create A Category", "data": { "categoryTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "userEdit": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit User", "data": { "userName": { "minlength": 4, "maxlength": 30, "type": "string", "required": true }, "userPassword": { "minlength": 4, "maxlength": 30, "type": "string", "required": true }, "givenName": { "minlength": 4, "maxlength": 100, "type": "string", "required": false }, "familyName": { "minlength": 4, "maxlength": 100, "type": "string", "required": false }, "avatarUrl": { "minlength": 4, "maxlength": 200, "type": "string", "required": false } } }, "userDelete": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "DELETE", "title": "Delete User" } }, "userid": "f371d6e3-1a54-450d-99a2-85adfbbabed1", "userName": "john.doe", "giveName": "John", "familyName": "Doe", "avatarUrl": "http://example.com/avatar.jpg", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" }
A user page
- Parameters
- userid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The globally uniqueuserid
of the user
- userid (required, string,
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "method": "GET" }, "completedTodoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/completedTodos", "method": "GET" }, "incompleteTodoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/incompleteTodos", "method": "GET" }, "todoCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } }, "categoryList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "method": "GET" }, "categoryCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create A Category", "data": { "categoryTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "userEdit": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit User", "data": { "userName": { "minlength": 4, "maxlength": 30, "type": "string", "required": true }, "userPassword": { "minlength": 4, "maxlength": 30, "type": "string", "required": true }, "givenName": { "minlength": 4, "maxlength": 100, "type": "string", "required": false }, "familyName": { "minlength": 4, "maxlength": 100, "type": "string", "required": false }, "avatarUrl": { "minlength": 4, "maxlength": 200, "type": "string", "required": false } } }, "userDelete": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "DELETE", "title": "Delete User" } }, "userid": "f371d6e3-1a54-450d-99a2-85adfbbabed1", "userName": "john.doe", "giveName": "John", "familyName": "Doe", "avatarUrl": "http://example.com/avatar.jpg", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" }
-
Request Update a User (application/json)
{ "giveName": "Jane", "userPassword": "asdjfalskfjlkasjfd", "familyName": "Doe", "avatarUrl": "http://example.com/avatar.jpg" }
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "method": "GET" }, "completedTodoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/completedTodos", "method": "GET" }, "incompleteTodoList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/incompleteTodos", "method": "GET" }, "todoCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } }, "categoryList": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "method": "GET" }, "categoryCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create A Category", "data": { "categoryTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "userEdit": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit User", "data": { "userName": { "minlength": 4, "maxlength": 30, "type": "string", "required": true }, "userPassword": { "minlength": 4, "maxlength": 30, "type": "string", "required": true }, "givenName": { "minlength": 4, "maxlength": 100, "type": "string", "required": false }, "familyName": { "minlength": 4, "maxlength": 100, "type": "string", "required": false }, "avatarUrl": { "minlength": 4, "maxlength": 200, "type": "string", "required": false } } }, "userDelete": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "DELETE", "title": "Delete User" } }, "userid": "f371d6e3-1a54-450d-99a2-85adfbbabed1", "userName": "john.doe", "giveName": "John", "familyName": "Doe", "avatarUrl": "http://example.com/avatar.jpg", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" }
- Response 204
A list of categories
- Parameters
- userid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The globally uniqueuserid
of the user
- userid (required, string,
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "title": "This Collection" }, "first": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories?offset=0", "title": "First Page of this Collection" }, "prev": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories?offset=0", "title": "Previous Page of this Collection" }, "next": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories?offset=0", "title": "Next Page of this Collection" }, "last": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories?offset=0", "title": "Last Page of this Collection" }, "categoryCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create A Category", "data": { "categoryTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } } }, "_embedded": { "categories": [ { "_links": { "self": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "GET" }, "categoryRead": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "GET" }, "todoList": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30/todos", "method": "GET" }, "categoryEdit": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Category", "data": { "categoryTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "categoryDelete": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "DELETE", "title": "Delete Category" } }, "categoryid": "f371d6e3-1a54-450d-99a2-85adfbbabed1", "title": "A1 Priority", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" } ] }, "total_items": "1", "returned_items": 1, "limit": 20, "offset": 0 }
-
Request 201 (application/application+json)
{ "title": "A1 Priority" }
-
Response 201 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "GET" }, "todoList": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30/todos", "method": "GET" }, "categoryEdit": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Category", "data": { "categoryTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "categoryDelete": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "DELETE", "title": "Delete Category" } }, "categoryid": "f371d6e3-1a54-450d-99a2-85adfbbabed1", "title": "A1 Priority", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" }
A category for todos
- Parameters
- categoryid (required, string,
ec210ff9-7b29-4784-82b2-7b4958618c30
) ... The uniquecategoryid
of the category
- categoryid (required, string,
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "GET" }, "userRead": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoList": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30/todos", "method": "GET" }, "categoryEdit": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Category", "data": { "categoryTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "categoryDelete": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "DELETE", "title": "Delete Category" } }, "categoryid": "f371d6e3-1a54-450d-99a2-85adfbbabed1", "title": "A1 Priority", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" }
-
Request 201 (application/application+json)
{ "title": "A1 Priority" }
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "GET" }, "userRead": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoList": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30/todos", "method": "GET" }, "categoryEdit": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Category", "data": { "categoryTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "categoryDelete": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "DELETE", "title": "Delete Category" } }, "categoryid": "f371d6e3-1a54-450d-99a2-85adfbbabed1", "title": "A1 Priority", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" }
- Response 204
A list of todos for a user
- Parameters
- userid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The globally uniqueuserid
of the user
- userid (required, string,
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "title": "This Collection" }, "first": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "First Page of this Collection" }, "prev": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "Previous Page of this Collection" }, "next": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "Next Page of this Collection" }, "last": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "Last Page of this Collection" }, "todoCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } } }, "_embedded": { "todos": [ { "_links": { "self": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "GET" }, "userRead": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoEdit": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } }, "todoDelete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "DELETE", "title": "Delete Todo" }, "todoComplete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/complete", "method": "PUT", "title": "Complete Todo" }, "todoIncomplete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/incomplete", "method": "PUT", "title": "Incomplete Todo" }, "todoSend": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/send", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Complete Todo", "data": { "userid": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "todoEditDateDue": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/editdatedue", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo Date Due", "data": { "todoDateDue": { "type": "date", "required": true } } }, "todoCategoryCreate": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Add Category to Todo", "data": { "categoryid": { "type": "string", "required": true } } }, "todoCategoryList": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "GET" } }, "todoid": "48937341-e8ab-4774-8228-64f2acbda710", "todoTitle": "Make Money", "todoNotes": "If we're not making money, it's a hobby.", "todoDateDue": "2014-11-03 14:22:18", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" } ] }, "total_items": "1", "returned_items": 1, "limit": 20, "offset": 0 }
-
Request Create a User (application/json)
{ "todoid": "48937341-e8ab-4774-8228-64f2acbda710", "todoTitle": "Make Money", "todoNotes": "If we're not making money, it's a hobby.", "todoDateDue": "2014-11-03 14:22:18" }
-
Response 201 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "GET" }, "userRead": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoEdit": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } }, "todoDelete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "DELETE", "title": "Delete Todo" }, "todoComplete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/complete", "method": "PUT", "title": "Complete Todo" }, "todoIncomplete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/incomplete", "method": "PUT", "title": "Incomplete Todo" }, "todoSend": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/send", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Complete Todo", "data": { "userid": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "todoEditDateDue": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/editdatedue", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo Date Due", "data": { "todoDateDue": { "type": "date", "required": true } } }, "todoCategoryCreate": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Add Category to Todo", "data": { "categoryid": { "type": "string", "required": true } } }, "categoryList": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "GET" } }, "todoid": "48937341-e8ab-4774-8228-64f2acbda710", "todoTitle": "Make Money", "todoNotes": "If we're not making money, it's a hobby.", "todoDateDue": "2014-11-03 14:22:18", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" }
A list of todos for a user
- Parameters
- userid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The globally uniqueuserid
of the user
- userid (required, string,
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "title": "This Collection" }, "first": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "First Page of this Collection" }, "prev": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "Previous Page of this Collection" }, "next": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "Next Page of this Collection" }, "last": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "Last Page of this Collection" }, "todoCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } } }, "_embedded": { "todos": [ { "_links": { "self": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "GET" }, "userRead": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoEdit": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } }, "todoDelete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "DELETE", "title": "Delete Todo" }, "todoIncomplete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/incomplete", "method": "PUT", "title": "Incomplete Todo" }, "todoSend": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/send", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Complete Todo", "data": { "userid": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "todoEditDateDue": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/editdatedue", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo Date Due", "data": { "todoDateDue": { "type": "date", "required": true } } }, "todoCategoryCreate": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Add Category to Todo", "data": { "categoryid": { "type": "string", "required": true } } }, "categoryList": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "GET" } }, "todoid": "48937341-e8ab-4774-8228-64f2acbda710", "todoTitle": "Make Money", "todoNotes": "If we're not making money, it's a hobby.", "todoDateDue": "2014-11-03 14:22:18", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" } ] }, "total_items": "1", "returned_items": 1, "limit": 20, "offset": 0 }
A list of todos for a user
- Parameters
- userid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The globally uniqueuserid
of the user
- userid (required, string,
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "title": "This Collection" }, "first": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "First Page of this Collection" }, "prev": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "Previous Page of this Collection" }, "next": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "Next Page of this Collection" }, "last": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos?offset=0", "title": "Last Page of this Collection" }, "todoCreate": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1/todos", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } } }, "_embedded": { "todos": [ { "_links": { "self": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "GET" }, "userRead": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoEdit": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } }, "todoDelete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "DELETE", "title": "Delete Todo" }, "todoComplete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/complete", "method": "PUT", "title": "Complete Todo" }, "todoSend": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/send", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Complete Todo", "data": { "userid": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "todoEditDateDue": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/editdatedue", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo Date Due", "data": { "todoDateDue": { "type": "date", "required": true } } }, "todoCategoryCreate": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Add Category to Todo", "data": { "categoryid": { "type": "string", "required": true } } }, "categoryList": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "GET" } }, "todoid": "48937341-e8ab-4774-8228-64f2acbda710", "todoTitle": "Make Money", "todoNotes": "If we're not making money, it's a hobby.", "todoDateDue": "2014-11-03 14:22:18", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" } ] }, "total_items": "1", "returned_items": 1, "limit": 20, "offset": 0 }
A Todo Item
- Parameters
- todoid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The uniquetodoid
of the todo
- todoid (required, string,
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "GET" }, "userRead": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoEdit": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } }, "todoDelete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "DELETE", "title": "Delete Todo" }, "todoComplete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/complete", "method": "PUT", "title": "Complete Todo" }, "todoIncomplete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/incomplete", "method": "PUT", "title": "Incomplete Todo" }, "todoSend": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/send", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Complete Todo", "data": { "userid": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "todoEditDateDue": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/editdatedue", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo Date Due", "data": { "todoDateDue": { "type": "date", "required": true } } }, "todoCategoryCreate": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Add Category to Todo", "data": { "categoryid": { "type": "string", "required": true } } }, "categoryList": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "GET" } }, "todoid": "48937341-e8ab-4774-8228-64f2acbda710", "todoTitle": "Make Money", "todoNotes": "If we're not making money, it's a hobby.", "todoDateDue": "2014-11-03 14:22:18", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" }
-
Request Update a User (application/json)
{ "todoid": "48937341-e8ab-4774-8228-64f2acbda710", "todoTitle": "Make Money", "todoNotes": "If we're not making money, it's a hobby.", "todoDateDue": "2014-11-03 14:22:18" }
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "GET" }, "userRead": { "href": "/users/f371d6e3-1a54-450d-99a2-85adfbbabed1", "method": "GET" }, "todoEdit": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo", "data": { "todoTitle": { "minlength": 4, "maxlength": 50, "type": "string", "required": true }, "todoDateDue": { "type": "date", "required": false }, "todoNotes": { "minlength": 4, "maxlength": 10000, "type": "string", "required": false } } }, "todoDelete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710", "method": "DELETE", "title": "Delete Todo" }, "todoComplete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/complete", "method": "PUT", "title": "Complete Todo" }, "todoIncomplete": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/incomplete", "method": "PUT", "title": "Incomplete Todo" }, "todoSend": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/send", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Complete Todo", "data": { "userid": { "minlength": 4, "maxlength": 50, "type": "string", "required": true } } }, "todoEditDateDue": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/editdatedue", "method": "PUT", "request_encoding": "application/x-www-form-urlencoded", "title": "Edit Todo Date Due", "data": { "todoDateDue": { "type": "date", "required": true } } }, "todoCategoryCreate": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Add Category to Todo", "data": { "categoryid": { "type": "string", "required": true } } }, "categoryList": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "GET" } }, "todoid": "48937341-e8ab-4774-8228-64f2acbda710", "todoTitle": "Make Money", "todoNotes": "If we're not making money, it's a hobby.", "todoDateDue": "2014-11-03 14:22:18", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" }
- Response 204
Complete a Todo
- Parameters
- todoid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The uniquetodoid
of the todo
- todoid (required, string,
- Response 204
Complete a Todo
- Parameters
- todoid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The uniquetodoid
of the todo
- todoid (required, string,
- Response 204
Send a Todo
- Parameters
- todoid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The uniquetodoid
of the todo
- todoid (required, string,
-
Request Update a User (application/json)
{ "userid": "48937341-e8ab-4774-8228-64f2acbda710" }
-
Response 204
Edit a Todo DateDue
- Parameters
- todoid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The uniquetodoid
of the todo
- todoid (required, string,
-
Request Update a User (application/json)
{ "todoDateDue": "2014-11-03 14:22:18" }
-
Response 204
Update the category list for a todo to include an additional category.
- Parameters
- todoid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The uniquetodoid
of the todo
- todoid (required, string,
-
Request Update a User (application/json)
{ "categoryid": "ec210ff9-7b29-4784-82b2-7b4958618c30" }
-
Response 204
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "title": "This Collection" }, "first": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories?offset=0", "title": "First Page of this Collection" }, "prev": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories?offset=0", "title": "Previous Page of this Collection" }, "next": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories?offset=0", "title": "Next Page of this Collection" }, "last": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories?offset=0", "title": "Last Page of this Collection" }, "todoCategoryCreate": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories", "method": "POST", "request_encoding": "application/x-www-form-urlencoded", "title": "Create A Category", "data": { "categoryid": { "type": "string", "required": true } } } }, "_embedded": { "todoCategories": [ { "_links": { "self": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "GET" }, "categoryRead": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "GET" } }, "categoryid": "f371d6e3-1a54-450d-99a2-85adfbbabed1", "title": "A1 Priority", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" } ] }, "total_items": "1", "returned_items": 1, "limit": 20, "offset": 0 }
Update the category list for a todo to include an additional category.
- Parameters
- todoid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The uniqueid
of the todo - categoryid (required, string,
f371d6e3-1a54-450d-99a2-85adfbbabed1
) ... The uniqueid
of the category
- todoid (required, string,
-
Response 200 (application/vnd.hale+json)
{ "_links": { "self": { "href": "/todos/48937341-e8ab-4774-8228-64f2acbda710/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "GET" }, "categoryRead": { "href": "/categories/ec210ff9-7b29-4784-82b2-7b4958618c30", "method": "GET" } }, "categoryid": "f371d6e3-1a54-450d-99a2-85adfbbabed1", "title": "A1 Priority", "created_at: "2014-11-03 14:22:18", "updated_at: "2014-11-03 14:22:18" }
- Response 204
Home :: Code of Conduct :: People :: Agenda :: Travel :: What Is RestFest?