API === - explain a bit how piston/REST works - how to access the read/write/put/create functions - what this api does and what not k4evers API Authentication -------------- - how does authentication work - what is the plugin authentication - when does a plugin need an user? - how to change user names URLs ---- For more information about a specific method you can click on the url/method to get to the handler or the responsible method for more documentation or code. **buyable/** :class:`item/[itemId]/ ` :func:`GET ` Get a specific item or a full/type item list. ========= ======================= Parameter Description ========= ======================= type item belonging to type-group barcode item with this barcode ========= ======================= :func:`POST ` Buy a :class:`Buyable ` (requires an ItemId) ========= ======================================================= Parameter Description ========= ======================================================= deposit Set to > 0 if you want to buy with deposit (default 0) amount amount of items to buy (default 1) ========= ======================================================= :class:`types/ ` :func:`GET ` List all types which an item can belong to :class:`history/ ` :func:`GET ` List the users last orders ========= ================= Parameter Description ========= ================= num Number of entries ========= ================= **account/** **transactions/** or **transfers/** :class:`transact/ or transfer/ ` :func:`GET ` List the users last transactions ========= ================= Parameter Description ========= ================= num Number of entries ========= ================= :func:`POST ` Transact money to an account ========= ================= Parameter Description ========= ================= amount [required] Amount to add to the users account type [required] Type of transaction (id) ========= ================= :class:`types/ ` :func:`GET ` List all available :class:`Transaction Types ` :class:`balance/ ` :func:`GET ` Get users account balance **auth/** :class:`blob/ ` :func:`GET ` Return authblob if allowed or auth if str given (currentyl only allowed for Plugin users) ========= ================= Parameter Description ========= ================= blob blob to get user from / auth user with, returns User or NULL ========= ================= :func:`POST ` Set authblob if allowed :class:`user/ ` :func:`GET ` get user by authblob string - this function works only when plugin has the :attr:`unique authblob ` flag set ========= ================= Parameter Description ========= ================= authblob [required] authblob to sear ========= ================= :class:`config/ ` :func:`GET ` Display API configuration variables Handler ------- .. automodule:: api2.handlers :members: Examples -------- - how to use the api - examples with... wget.. python-rest? As normal user ^^^^^^^^^^^^^^ .. note:: there will be cat content wget """" wget part As a plugin ^^^^^^^^^^^