progrez.cloud

API 2

21 Agustus 2020

~DAFTAR ISI


1.1 Registrasi

1.2 Login



~DUCUMENTATION API

Documentasi api camps schadule dosen.



1.1 Registrasi

curl -i -X POST -H "Content-Type: multipart/form-data"

-F "nidn=123456"

-F "[email protected]"

-F "nama=Arjun Nurdin.hampir.St"

-F "password=pass"

http://localhost/api/v1/dosen.php?access=registrasi

curl -F "nidn=123456" -F "nama=Arjun Nurdin.hampir.St" -F "email=email@e.co" -F "password=pass" http://localhost/api/v1/dosen.php?access=registrasi

reponds

{"error":false,"code":20101,"msg":"suceess","result":{"id":"1","name":"Arjun Nurdin.hampir.St","token":"ZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SnBaQ0k2SWpFaUxDSnVZVzFsSWpvaVFYSnFkVzRnVG5WeVpHbHVMbWhoYlhCcGNpNVRkQ0lzSW14bGRtVnNJam9pWkc5elpXNGlmUT09LjIxYzg4NzgyNjFmOWU5NjUzMmNkNWI4MmU4NGEzNmYzZjM3ZmYzYTdhNDAzYWQ2MTQzOGUwNzczNTE2YjUxMmM="}}

...


1.2 Login

curl -i -X POST -H "Content-Type: multipart/form-data"

-F "[email protected]"

-F "password=

http://localhost/api/v1/universitas.php?access=registrasi

curl -F "email=email@e.co" -F "password=pass" http://localhost/api/v1/dosen.php?access=login

respondse

{"error":false,"code":20101,"msg":"suceess","result":{"id":"1","name":"Arjun Nurdin.hampir.St","token":"ZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SnBaQ0k2SWpFaUxDSnVZVzFsSWpvaVFYSnFkVzRnVG5WeVpHbHVMbWhoYlhCcGNpNVRkQ0lzSW14bGRtVnNJam9pWkc5elpXNGlmUT09LjIxYzg4NzgyNjFmOWU5NjUzMmNkNWI4MmU4NGEzNmYzZjM3ZmYzYTdhNDAzYWQ2MTQzOGUwNzczNTE2YjUxMmM="}}

...