|
3 years ago | |
---|---|---|
bin | 3 years ago | |
etc/security | 3 years ago | |
src/App | 3 years ago | |
var | 3 years ago | |
web | 3 years ago | |
.gitignore | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
composer.json | 3 years ago | |
propel-dist.yaml | 3 years ago |
$ git clone https://gitnet.fr/deblan/android-automate-api.git
$ cd android-automate-api
$ make
$ cp propel-dist.yaml propel.yaml # Edit propel.yaml
$ cp etc/security/users.json-dist etc/security/users.json # Edit users.json
$ make propel
200
: Resource found201
: Resource created204
: Resource removed404
: Resource not found500
: Internal errorWhen a resource is created or deleted, the response will be like:
{
"status": true|false,
"code": 200|201|204|404|500,
"message": "A message"
}
POST /api/sms/create
with MIME media type application/json
Body
{"sender": "+33611223344", "message": "Hello, World!", "time": "1516031177"}
DELETE /api/sms/delete/{id}
GET /api/sms/list
The response contains an collection of SMS:
[
{
"id": 1234,
"sender": "+33611223344",
"message": "Hello, World!",
"received_at": 1516031177,
"notified_at": 1516031179
},
...
]