You need to develop an android client for a CMS website. How do I write interfaces for Android clients to call? You need to develop an android client for a CMS website. How do I write interfaces for Android clients to call?
Reply content:
You need to develop an android client for a CMS website. How do I write interfaces for Android clients to call?
Interface development, now the popular method is RESTful Architecture
After establishing the development interface standards, follow the relevant development standards.
Refer to the document to understand the RESTful Architecture
You can use the RESTFUL framework to develop separate api interfaces.
Laravel, which supports the restfull framework, is easy to use.
Official Website http://laravel.com
A Rest with an OAuth authorization, the general framework can do, Laravel Yii2
You can use web service.
Write your own webservice. Simply put, the GET method gets data and returns json data to the client. POST, you write a post interface, receive the data to verify if it is legal, and then store the data into the database, return the json
{"ErrorCode": 0, "result": {"key": "value", "key": "value" }}// success {"errorCode": 123, "result": "error code"} // Error
As long as you send and return data, you need to agree with the client, basically what is the problem. If you are afraid of using it by others, the basic security method is to add a key md5 to the parameter for verification.