============= Cubicweb WSME ============= .. include:: ../README Getting Started =============== - Install the cube:: pip install cubicweb-wsme - Activate the cube on your instance:: add_cube("wsme") Your instance now provides webservices - Call your APIs, for example from javascript (using jQuery): .. code-block:: javascript $.ajax({ url: 'http://localhost:8080/cwuser', dataType: 'json', data: { // get users which name starts with "dupon" filter: JSON.stringify({ 'surname': { '$ilike': 'dupon%' } }, // retrieve the user groups references fetch: [ 'in_group' ], // order by login DESC orderby: '-login' }, traditional: true, success: function (data) { // data is a list looking like this: // [{eid: 000, login: "xx", ...., in_group: [{eid: 0, modification_date: 'xxx'}, {eid: ...}]}] console.log("Got", data, "!"); } }); Content ======= .. toctree:: :maxdepth: 2 types query api Change History ============== .. toctree:: :maxdepth: 1 changes Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` .. _CubicWeb: http://www.cubicweb.org/