Skip to content

Conversation

@TomClarkson
Copy link
Contributor

Is the 'http://ib.api' something that you will make available? Or is it private?

danharper added a commit that referenced this pull request Jul 29, 2015
Add redux promise middleware dependency
@danharper danharper merged commit 3fd65ae into danharper:master Jul 29, 2015
@danharper
Copy link
Owner

Ah, thanks.

It's the API of our project at work, I'm planning to make a dummy API server at some point as I'd like to take this project further as a tutorial eventually.

But basically, /properties returns something like this:

{
  "pagination": {
    "perPage": 30,
    "currentPage": 1,
    "totalPages": 1,
    "totalRecords": 3
  },
  "links": {
    "first": "https://api.inventorybase.com/properties/?page=1",
    "prev": null,
    "self": "https://api.inventorybase.com/properties/?page=1",
    "next": null,
    "last": "https://api.inventorybase.com/properties/?page=1"
  },
  "data": [
    {
      "id": 1,
      "ref": "DEMO00001",
      "address": {
        "line1": "100 Example Street",
        "line2": null,
        "city": "Portsmouth",
        "county": "Hampshire",
        "postcode": "PO3 6FY",
        "country": "United Kingdom"
      },
      "geocoords": {
        "lat": "50.8148511",
        "lng": "-1.0965217"
      },
      "furnished": "Unfurnished",
      "type": "House",
      "detachment": "Semi-detached",
      "no_of_beds": 4,
      "no_of_baths": 2,
      "no_of_garages": 1,
      "notes": "Some notes",
      "activated": true,
      "client": {
        "id": 4,
        "name": "Ali Smith"
      }
    },
    { /* ... */ },
    { /* ... */ }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants