====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
api2:student:student_group [2017/10/13 16:38] maries |
api2:student:student_group [2017/11/24 18:07] (current) maries |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===Object resources=== | ===Object resources=== | ||
| ^ Property ^ Type ^ Description ^ | ^ Property ^ Type ^ Description ^ | ||
| + | | id | Integer | identifier for the database of Domoscio's API | | ||
| | name | String | Custom data | | | name | String | Custom data | | ||
| + | | created_at | DateTime | Date of creation of the object | | ||
| + | | updated_at | DateTime | Last time the object has been modified | | ||
| ===Create (POST)=== | ===Create (POST)=== | ||
| Line 23: | Line 26: | ||
| <code> | <code> | ||
| { | { | ||
| - | name : "2nd year associates financial services" | + | "name": "2nd year associates financial services" |
| } | } | ||
| </code> | </code> | ||
| Line 31: | Line 34: | ||
| <code> | <code> | ||
| { | { | ||
| - | id: 1, | + | "id": 31, |
| - | name: "2nd year associates financial services" | + | "name": "2nd year associates financial services", |
| + | "created_at": "2017-11-24T17:01:39.016Z", | ||
| + | "updated_at": "2017-11-24T17:01:39.016Z" | ||
| } | } | ||
| </code> | </code> | ||
| Line 49: | Line 54: | ||
| <code> | <code> | ||
| { | { | ||
| - | id: 1, | + | "id": 31, |
| - | name: "2nd year associates financial services" | + | "name": "2nd year associates financial services", |
| + | "created_at": "2017-11-24T17:01:39.016Z", | ||
| + | "updated_at": "2017-11-24T17:01:39.016Z" | ||
| } | } | ||
| </code> | </code> | ||
| Line 56: | Line 63: | ||
| **Without ID provided**\\ | **Without ID provided**\\ | ||
| <code> | <code> | ||
| - | [{ | + | [ |
| - | id: 1, | + | { |
| - | name: "2nd year associates financial services" | + | "id": 29, |
| - | }, | + | "name": "test", |
| - | { | + | "created_at": "2017-11-21T16:25:29.409Z", |
| - | id: 2, | + | "updated_at": "2017-11-21T16:25:29.409Z" |
| - | name: "senior associates financial services" | + | }, |
| - | }] | + | { |
| + | "id": 30, | ||
| + | "name": "test", | ||
| + | "created_at": "2017-11-21T16:25:57.926Z", | ||
| + | "updated_at": "2017-11-21T16:25:57.926Z" | ||
| + | }, | ||
| + | { | ||
| + | "id": 31, | ||
| + | "name": "2nd year associates financial services", | ||
| + | "created_at": "2017-11-24T17:01:39.016Z", | ||
| + | "updated_at": "2017-11-24T17:01:39.016Z" | ||
| + | } | ||
| + | ] | ||
| </code> | </code> | ||
| Line 81: | Line 100: | ||
| <code> | <code> | ||
| { | { | ||
| - | name : "No more 2nd year associates financial services" | + | "name": "3nd year associates financial services" |
| } | } | ||
| </code> | </code> | ||
| Line 89: | Line 108: | ||
| <code> | <code> | ||
| { | { | ||
| - | id: 1, | + | "id": 31, |
| - | name: "No more 2nd year associates financial services" | + | "name": "3nd year associates financial services", |
| + | "created_at": "2017-11-24T17:01:39.016Z", | ||
| + | "updated_at": "2017-11-24T17:05:55.390Z" | ||
| } | } | ||
| </code> | </code> | ||