PHP JWT (Json Web Token) implementation in Android (Retrofit)

2018-10-21 22:46:13

I have a PHP file with JWT token APi->(https://github.com/durgesh-sahani/restapi-jwt-php-mysql/tree/master/jwt-api) my problem, this Api d'ont have $_POST[] method. And all method delete,insert,update in 1 file php and all is function. Normaly my web services without JWT all in a separate file, exemple, delete.php update.php. My real problem is in Android. How can I do that with retrofit ? For the get functions.. exemple; get on retrofit in php file "public function inseert()" ? and get token ? Please help me, i am very curious i want to learn. Sorry for my bad english, Thanks.