edent / Renault-Zoe-API

A basic API for getting information about your Renault Zoe Electric Vehicle.
93 stars 24 forks source link

Using postman instead #11

Closed alarcia closed 6 years ago

alarcia commented 6 years ago

Hello! Thanks for the good work. I want to use postman, but I am having trouble. The headers part is clear, but I don't know where to put the -d of cURL in postman. I tried both body and params, but the result is the same.

In body: image

In params: image

Response:

{
    "code": 1203244171,
    "message": "Required request body content is missing: org.springframework.web.method.HandlerMethod$HandlerMethodParameter@77bcca65",
    "timestamp": 1522142947676
}

Is it possible that the API has changed?

edent commented 6 years ago

The API hasn't changed. I'm not familiar with Postman, but it looks like you need to send JSON in the raw tab. See https://www.getpostman.com/docs/v6/postman/sending_api_requests/requests

alarcia commented 6 years ago

Thank you very much, that did it, and shame on me for not researching enough.

edent commented 6 years ago

Don't beat yourself up. We were all new once. Glad the API is useful to you.