External API ============ .. sectionauthor:: Tom Needham Introduction ------------ The external API inside ownCloud allows third party developers to access data provided by ownCloud apps. ownCloud version 5.0 will follow the `OCS v1.7 specification `_ (draft). Usage ----- Registering Methods ~~~~~~~~~~~~~~~~~~~ Methods are registered inside the :file:`appinfo/routes.php` using :php:class:`OCP\\API` .. code-block:: php ok 100 **JSON**: .. code-block:: js { "ocs": { "meta": { "status": "ok", "statuscode": 100, "message": null }, "data": { // data here } } } Statuscodes ~~~~~~~~~~~ The statuscode can be any of the following numbers: * **100** - successful * **996** - server error * **997** - not authorized * **998** - not found * **999** - unknown error