Our API

Welcome to coolcorp biz! This is our API documentation.

Wobble

This is our high-quality wobbles API. You can use this API to request and remove different wobbles at a low wibble price.

List wobbles

Lists all wobbles for a particular account.

GET
/wobbles/v1/{username}

Example request

$ curl https://wobble.biz/wobbles/v1/{username}

Example response

[
  {
    "owner": "{username}",
    "id": "{wobble_id}",
    "created": "{timestamp}",
    "modified": "{timestamp}"
  },
  {
    "owner": "{username}",
    "id": "{wobble_id}",
    "created": "{timestamp}",
    "modified": "{timestamp}"
  }
]

Create wobble

Creates a new, empty wobble.

Property Description
name (optional) the name of the wobble
description (optional) a description of the wobble
POST
/wobbles/v1/{username}

Example request

curl -X POST https://wobble.biz/wobbles/v1/{username}

Example request body

{
  "name": "foo",
  "description": "bar"
}

Example response

{
  "owner": "{username}",
  "id": "{wobble_id}",
  "name": null,
  "description": null,
  "created": "{timestamp}",
  "modified": "{timestamp}"
}

Retrieve a wobble

Returns a single wobble.

Retrieve information about an existing wobble.

GET
/wobbles/v1/{username}/{wobble_id}

Example request

curl https://wobble.biz/wobbles/v1/{username}/{wobble_id}

Example response

{
  "owner": "{username}",
  "id": "{wobble_id}",
  "created": "{timestamp}",
  "modified": "{timestamp}"
}

Update a wobble

Updates the properties of a particular wobble.

Property Description
name (optional) the name of the wobble
description (optional) a description of the wobble
PATCH
/wobbles/v1/{username}/{wobble_id}

Example request

curl --request PATCH https://wobble.biz/wobbles/v1/{username}/{wobble_id} \
  -d @data.json

Example request body

{
  "name": "foo",
  "description": "bar"
}

Example response

{
  "owner": "{username}",
  "id": "{wobble_id}",
  "name": "foo",
  "description": "bar",
  "created": "{timestamp}",
  "modified": "{timestamp}"
}

Delete a wobble

Deletes a wobble, including all wibbles it contains.

DELETE
/wobbles/v1/{username}/{wobble_id}

Example request

curl -X DELETE https://wobble.biz/wobbles/v1/{username}/{wobble_id}

Example response

HTTP 204

List wibbles

List all the wibbles in a wobble. The response body will be a WobbleCollection.

GET
/wobbles/v1/{username}/{wobble_id}/wibbles

Example request

curl https://wobble.biz/wobbles/v1/{username}/{wobble_id}/wibbles

Example response

{
  "type": "Wobble",
  "wibbles": [
    {
      "id": "{wibble_id}",
      "type": "Wobble",
      "properties": {
        "prop0": "value0"
      }
    },
    {
      "id": "{wibble_id}",
      "type": "Wobble",
      "properties": {
        "prop0": "value0"
      }
    }
  ]
}

Insert or update a wibble

Inserts or updates a wibble in a wobble. If there's already a wibble with the given ID in the wobble, it will be replaced. If there isn't a wibble with that ID, a new wibble is created.

Property Description
id the id of an existing wibble in the wobble
PUT
/wobbles/v1/{username}/{wobble_id}/wibbles/{wibble_id}

Example request

curl https://wobble.biz/wobbles/v1/{username}/{wobble_id}/wibbles/{wibble_id} \
  -X PUT \
  -d @file.geojson

Example request body

{
  "id": "{wibble_id}",
  "type": "Wobble",
  "properties": {
    "prop0": "value0"
  }
}

Example response

{
  "id": "{wibble_id}",
  "type": "Wobble",
  "properties": {
    "prop0": "value0"
  }
}

Retrieve a wibble

Retrieves a wibble in a wobble.

GET
/wobbles/v1/{username}/{wobble_id}/wibbles/{wibble_id}

Example request

curl https://wobble.biz/wobbles/v1/{username}/{wobble_id}/wibbles/{wibble_id}

Example response

{
  "id": "{wibble_id}",
  "type": "Wobble",
  "properties": {
    "prop0": "value0"
  }
}

Delete a wibble

Removes a wibble from a wobble.

DELETE
/wobbles/v1/{username}/{wobble_id}/wibbles/{wibble_id}

Example request

curl -X DELETE https://wobble.biz/wobbles/v1/{username}/{wobble_id}/wibbles/{wibble_id}

Example response

HTTP 204

Wobble API Documentation