1.0 PlugInBaby API definition

bds-iota-hackathon edited this page Nov 20, 2017 · 1 revision

Welcome to the car-agents wiki!

API definition

Customer

Search

GET/ search?long=27.1&lat=31.2&radius=1

Example with working data

http://localhost:8888/api/search?lat=54&lon=18&radius=2

Response

Content-Type: application/json

[
  {
    status: "free" | "occupied",
    long: 27.1,
    lat: 31.3,
    owner: "GFDSAHOFDSHAUFSAZFSAHFFHDSIAHDISAHIDJFDSKAJDSA",
    address: "TIZODOIHIDSHAUGIDSGAIDSAHODSGIDSAIUDSADSAOI",
    price: 0.02
  },
  {
    ...
  }
]

Pay

GET/ pay?address=FDSGALFGZUFDSDUSAFUDKSFADSADSADSA

Response

Bundle hash

Vendor

Update Status

GET/ updateStation?id=stationID&status=FREE

Response

None

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.