====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
api2:knowledge_structure:knowledge_graph [2017/10/13 10:30] maries |
api2:knowledge_structure:knowledge_graph [2017/11/22 16:09] (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 | | ||
| | 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 21: | Line 24: | ||
| <code> | <code> | ||
| { | { | ||
| - | name: « Corporate Finance » | + | name: "Corporate Finance" |
| } | } | ||
| Line 30: | Line 33: | ||
| <code> | <code> | ||
| { | { | ||
| - | id: 1, | + | "name": "Corporate Finance", |
| - | name: « Corporate Finance », | + | "id": 856, |
| - | instance_id: 1 | + | "created_at": "2017-11-22T15:01:23.263Z", |
| + | "updated_at": "2017-11-22T15:01:23.263Z" | ||
| } | } | ||
| - | |||
| </code> | </code> | ||
| Line 50: | Line 53: | ||
| <code> | <code> | ||
| { | { | ||
| - | id : 1, | + | "id": 856, |
| - | name : « Corporate Finance », | + | "name": "Corporate Finance", |
| - | instance_id : 1 | + | "created_at": "2017-11-22T15:01:23.263Z", |
| + | "updated_at": "2017-11-22T15:01:23.263Z" | ||
| } | } | ||
| </code> | </code> | ||
| Line 60: | Line 64: | ||
| <code> | <code> | ||
| [ | [ | ||
| - | { | + | { |
| - | id: 1, | + | "id": 855, |
| - | name: « Corporate Finance », | + | "name": "Assets", |
| - | instance_id: 1 | + | "created_at": "2017-11-20T12:52:35.880Z", |
| - | }, | + | "updated_at": "2017-11-20T12:52:35.880Z" |
| - | { | + | }, |
| - | id: 2, | + | { |
| - | name: « Mathematics», | + | "id": 856, |
| - | instance_id: 1 | + | "name": "Corporate Finance", |
| - | } | + | "created_at": "2017-11-22T15:01:23.263Z", |
| + | "updated_at": "2017-11-22T15:01:23.263Z" | ||
| + | } | ||
| ] | ] | ||
| </code> | </code> | ||
| Line 87: | Line 93: | ||
| <code> | <code> | ||
| { | { | ||
| - | name : « No more Corporate Finance » | + | name : "No more Corporate Finance" |
| } | } | ||
| </code> | </code> | ||
| Line 95: | Line 101: | ||
| <code> | <code> | ||
| { | { | ||
| - | id: 1, | + | "id": 856, |
| - | name: « No more Corporate Finance », | + | "name": "No more Corporate Finance", |
| - | instance_id: 1 | + | "created_at": "2017-11-22T15:01:23.263Z", |
| + | "updated_at": "2017-11-22T15:04:11.268Z" | ||
| } | } | ||
| </code> | </code> | ||