In building an ownCloud application, there are two approaches: the ownCloud App API and the App Framework API. This tutorial focuses on developing apps using the App Framework API. However, I will discuss the main differences between the APIs and reference users to another tutorial on creating an ownCloud app using the App API.
In building an ownCloud application, there are two approaches: the ownCloud App API and the App Framework API. This tutorial focuses on developing apps using the App Framework API. However, I will discuss the main differences between the APIs and reference users to another tutorial on creating an ownCloud app using the App API.
In deciding between using the ownCloud App API and the App Framework API, consider that the ownCloud App API facilitates the app-creating process for developers new to programming. Rather than use the MVC architecture that the App Framwork API employs, ownCloud App API uses templates.
The main differences between the App API and the AppFramework API are summarized in a table below.
Criteria | ownCloud App API | App Framwork API |
---|---|---|
Difficulty | easy | medium |
Architecture | routes and templates | routes and MVC |
Testability | hard | easy |
Maintainability | hard | easy |
Templates | OC_Template | OC_Template and Twig |
Security | manual checks | escapse XSS, default CSRF and Authentication checks |
Please follow this link to get the full ownCloud App API listing: http://api.owncloud.org/namespaces/OCP.html
Please follow this link to get a full listing of the ownCloud API: http://doc.owncloud.org/server/master/developer_manual/app/appframework/api/index.html