![]() |
Infohub JS API
|
Public Member Functions | |
| constructor (ctx) | |
| async | createCatalogue (cat_data, cb) |
| async | getCatalogue (cat_id, query, cb, cat_data=null) |
| getCatalogueByShortId (project_sid, cb, query={ members:['info'] }) | |
| async | getCatalogueList (cb, query=null) |
Public Attributes | |
| _ctx = null | |
| constructor | ( | ctx | ) |
| {Context} | ctx - Context instance |
| async createCatalogue | ( | cat_data, | |
| cb ) |
| {*} | cat_data |
| async getCatalogue | ( | cat_id, | |
| query, | |||
| cb, | |||
| cat_data = null ) |
Get catalogue by ID.
If catalogue does not exist and cat_data is given, a new catalogue is created using cat_data
| {*} | cat_id |
| {*} | query = { 'members' : 'info,properties' 'properties' : 'nodes' : } |
| {*} | cb Callback function |
| {*} | cat_data |
| getCatalogueByShortId | ( | project_sid, | |
| cb, | |||
| query = { members: ['info'] } ) |
| {*} | project_sid |
| {*} | cb |
| {*} | query |
| async getCatalogueList | ( | cb, | |
| query = null ) |
Get list of catalogues.
| {*} | cb callback |
| {*} | query optional query filter |
| _ctx = null |