mercredi 11 mars 2020

How to convert laravel passport default route oauth/token response in XML?

I am using laravel 5.4 and laravel passport version 4.0.3. My laravel rest API json & XML is working fine for me. But I am unable to convert the passport default route 'oauth/token' response from JSON format to XML.

{
  "token_type": "Bearer",
  "expires_in": 31536000,
  "access_token": "xxxxxxxxxxxxxxxxxx",
  "refresh_token": "xxxxxxxxxxxxxxxxx"
}

Please help anyone to convert the default passport response to XML format. Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire