====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
api2:student:student_cluster [2017/10/13 17:20] maries |
api2:student:student_cluster [2017/11/24 18:16] (current) maries |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===Object resources=== | ===Object resources=== | ||
| ^ Property ^ Type ^ Description ^ | ^ Property ^ Type ^ Description ^ | ||
| + | | id | Integer | identifier for the database of Domoscio's API | | ||
| | student_id | Integer | The Student the Student Cluster belongs to | | | student_id | Integer | The Student the Student Cluster belongs to | | ||
| + | | created_at | DateTime | Date of creation of the object | | ||
| + | | updated_at | DateTime | Last time the object has been modified | | ||
| ===Fetch (GET)=== | ===Fetch (GET)=== | ||
| Line 20: | Line 23: | ||
| <code> | <code> | ||
| { | { | ||
| - | id: 1, | + | "id": 385, |
| - | student_id: 1 | + | "created_at": "2017-11-24T13:20:31.549Z", |
| + | "updated_at": "2017-11-24T13:20:31.549Z", | ||
| + | "student_id": 372, | ||
| + | "cluster_id": 72 | ||
| } | } | ||
| </code> | </code> | ||
| Line 28: | Line 34: | ||
| **Without ID provided**\\ | **Without ID provided**\\ | ||
| <code> | <code> | ||
| - | [{ | + | [ |
| - | id: 1, | + | { |
| - | student_id: 1 | + | "id": 384, |
| - | }, | + | "created_at": "2017-11-24T13:19:56.437Z", |
| - | { | + | "updated_at": "2017-11-24T13:19:56.437Z", |
| - | id: 2, | + | "student_id": 371, |
| - | student_id: 2 | + | "cluster_id": 71 |
| - | }] | + | }, |
| + | { | ||
| + | "id": 385, | ||
| + | "created_at": "2017-11-24T13:20:31.549Z", | ||
| + | "updated_at": "2017-11-24T13:20:31.549Z", | ||
| + | "student_id": 372, | ||
| + | "cluster_id": 72 | ||
| + | } | ||
| + | ] | ||
| </code> | </code> | ||