vendredi 9 mars 2018

why integer data is returned as string in postman

I'm using postman to test my APIs and i get the following response

{
 "Message": "Dinks loaded successfully.",
 "Status": true,
 "InnerData": [
     {
         "id": 1,
         "place_id": "25",
         "drink_type": "1",
         "drink_amount": "2",
         "device_id": "1",
         "created_at": "2018-03-09 14:22:27",
         "updated_at": "2018-03-09 14:22:27"
     }
 ]
}

in my DB the drink_type, place_id, drink_amount, device_id are all integers but i receive them as string , what is wrong with them ?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2oXgfkG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire