Hiccup API

Overview

Version information

Version : v1

URI scheme

BasePath : /

Consumes

  • application/json

Produces

  • application/json

Paths

POST /hiccup/api/v1/crashreports/

Description

Create a crash report

Body parameter

Name : data
Flags : required
Type : CrashReport

Responses

HTTP CodeDescriptionSchema
201The crash report has been successfully created.CreateCrashreportResponseSchema
400Invalid input.No Content
404No device with the given uuid could be found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/crashreports/
Request body
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

Example HTTP response

Response 201
{
  "device_local_id" : 0
}

GET /hiccup/api/v1/crashreports/

Description

List crash reports

Parameters

TypeNameDescriptionSchema
Querybuild_fingerprint
optional
string
Querydevice
optional
string
Querylimit
optional
Number of results to return per page.integer
Queryoffset
optional
The initial index from which to return the results.integer
Queryradio_version
optional
string

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
count
required
Example : 0integer
next
optional
Example : "string"string (uri)
previous
optional
Example : "string"string (uri)
results
required
Example : [ "[crashreport](#crashreport)" ]< CrashReport > array

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/crashreports/

Example HTTP response

Response 200
"object"

GET /hiccup/api/v1/crashreports/{id}/

Description

Get a crash report

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this crashreport.integer

Responses

HTTP CodeDescriptionSchema
200CrashReport
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/crashreports/0/

Example HTTP response

Response 200
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

PUT /hiccup/api/v1/crashreports/{id}/

Description

Update a crash report

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this crashreport.integer

Body parameter

Name : data
Flags : required
Type : CrashReport

Responses

HTTP CodeDescriptionSchema
200CrashReport
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/crashreports/0/
Request body
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

Example HTTP response

Response 200
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

DELETE /hiccup/api/v1/crashreports/{id}/

Description

Delete a crash report

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this crashreport.integer

Responses

HTTP CodeDescriptionSchema
204No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/crashreports/0/

PATCH /hiccup/api/v1/crashreports/{id}/

Description

Partially update a crash report

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this crashreport.integer

Body parameter

Name : data
Flags : required
Type : CrashReport

Responses

HTTP CodeDescriptionSchema
200CrashReport
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/crashreports/0/
Request body
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

Example HTTP response

Response 200
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

POST /hiccup/api/v1/devices/

Description

Create a device

Body parameter

Name : data
Flags : required
Type : Device

Responses

HTTP CodeDescriptionSchema
201Device
400Invalid input.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/
Request body
{
  "id" : 0,
  "board_date" : "string",
  "last_heartbeat" : "string",
  "uuid" : "string",
  "imei" : "string",
  "chipset" : "string",
  "token" : "string",
  "next_per_crashreport_key" : 0,
  "next_per_heartbeat_key" : 0,
  "user" : 0
}

Example HTTP response

Response 201
{
  "id" : 0,
  "board_date" : "string",
  "last_heartbeat" : "string",
  "uuid" : "string",
  "imei" : "string",
  "chipset" : "string",
  "token" : "string",
  "next_per_crashreport_key" : 0,
  "next_per_heartbeat_key" : 0,
  "user" : 0
}

GET /hiccup/api/v1/devices/

Description

List devices

Parameters

TypeNameDescriptionSchema
Queryboard_date
optional
string
Querychipset
optional
string
Querylimit
optional
Number of results to return per page.integer
Queryoffset
optional
The initial index from which to return the results.integer
Queryuuid
optional
string

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
count
required
Example : 0integer
next
optional
Example : "string"string (uri)
previous
optional
Example : "string"string (uri)
results
required
Example : [ "[device](#device)" ]< Device > array

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/

Example HTTP response

Response 200
"object"

POST /hiccup/api/v1/devices/register/

Description

Register a new device.

This endpoint will generate a django user for the new device. The device is identified by a uuid, and authenticated with a token. We generate the uuid here as this makes it easier to deal with collisions.

Body parameter

Name : data
Flags : required
Type : DeviceCreate

Responses

HTTP CodeDescriptionSchema
200The device has been successfully registered.DeviceRegisterResponseSchema
400Invalid input.No Content

Tags

  • hiccup

Example HTTP request

Request path
/hiccup/api/v1/devices/register/
Request body
{
  "board_date" : "string",
  "chipset" : "string"
}

Example HTTP response

Response 200
{
  "uuid" : "string",
  "token" : "string"
}

GET /hiccup/api/v1/devices/{device__uuid}/crashreports/{device_local_id}/

Description

Get a crash report

Parameters

TypeNameSchema
Pathdevice__uuid
required
string
Pathdevice_local_id
required
integer

Responses

HTTP CodeDescriptionSchema
200CrashReport
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/crashreports/0/

Example HTTP response

Response 200
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

PUT /hiccup/api/v1/devices/{device__uuid}/crashreports/{device_local_id}/

Description

Update a crash report

Parameters

TypeNameSchema
Pathdevice__uuid
required
string
Pathdevice_local_id
required
integer

Body parameter

Name : data
Flags : required
Type : CrashReport

Responses

HTTP CodeDescriptionSchema
200CrashReport
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/crashreports/0/
Request body
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

Example HTTP response

Response 200
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

DELETE /hiccup/api/v1/devices/{device__uuid}/crashreports/{device_local_id}/

Description

Delete a crash report

Parameters

TypeNameSchema
Pathdevice__uuid
required
string
Pathdevice_local_id
required
integer

Responses

HTTP CodeDescriptionSchema
204No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/crashreports/0/

PATCH /hiccup/api/v1/devices/{device__uuid}/crashreports/{device_local_id}/

Description

Partially update a crash report

Parameters

TypeNameSchema
Pathdevice__uuid
required
string
Pathdevice_local_id
required
integer

Body parameter

Name : data
Flags : required
Type : CrashReport

Responses

HTTP CodeDescriptionSchema
200CrashReport
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/crashreports/0/
Request body
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

Example HTTP response

Response 200
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

GET /hiccup/api/v1/devices/{uuid}/

Description

Get a device

Parameters

TypeNameSchema
Pathuuid
required
string

Responses

HTTP CodeDescriptionSchema
200Device
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/

Example HTTP response

Response 200
{
  "id" : 0,
  "board_date" : "string",
  "last_heartbeat" : "string",
  "uuid" : "string",
  "imei" : "string",
  "chipset" : "string",
  "token" : "string",
  "next_per_crashreport_key" : 0,
  "next_per_heartbeat_key" : 0,
  "user" : 0
}

PUT /hiccup/api/v1/devices/{uuid}/

Description

Update a device

Parameters

TypeNameSchema
Pathuuid
required
string

Body parameter

Name : data
Flags : required
Type : Device

Responses

HTTP CodeDescriptionSchema
200Device
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/
Request body
{
  "id" : 0,
  "board_date" : "string",
  "last_heartbeat" : "string",
  "uuid" : "string",
  "imei" : "string",
  "chipset" : "string",
  "token" : "string",
  "next_per_crashreport_key" : 0,
  "next_per_heartbeat_key" : 0,
  "user" : 0
}

Example HTTP response

Response 200
{
  "id" : 0,
  "board_date" : "string",
  "last_heartbeat" : "string",
  "uuid" : "string",
  "imei" : "string",
  "chipset" : "string",
  "token" : "string",
  "next_per_crashreport_key" : 0,
  "next_per_heartbeat_key" : 0,
  "user" : 0
}

DELETE /hiccup/api/v1/devices/{uuid}/

Description

Delete a device

Parameters

TypeNameSchema
Pathuuid
required
string

Responses

HTTP CodeDescriptionSchema
204No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/

PATCH /hiccup/api/v1/devices/{uuid}/

Description

Make a partial update for a device

Parameters

TypeNameSchema
Pathuuid
required
string

Body parameter

Name : data
Flags : required
Type : Device

Responses

HTTP CodeDescriptionSchema
200Device
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/
Request body
{
  "id" : 0,
  "board_date" : "string",
  "last_heartbeat" : "string",
  "uuid" : "string",
  "imei" : "string",
  "chipset" : "string",
  "token" : "string",
  "next_per_crashreport_key" : 0,
  "next_per_heartbeat_key" : 0,
  "user" : 0
}

Example HTTP response

Response 200
{
  "id" : 0,
  "board_date" : "string",
  "last_heartbeat" : "string",
  "uuid" : "string",
  "imei" : "string",
  "chipset" : "string",
  "token" : "string",
  "next_per_crashreport_key" : 0,
  "next_per_heartbeat_key" : 0,
  "user" : 0
}

POST /hiccup/api/v1/devices/{uuid}/crashreports/

Description

Create a crash report

Parameters

TypeNameSchema
Pathuuid
required
string

Body parameter

Name : data
Flags : required
Type : CrashReport

Responses

HTTP CodeDescriptionSchema
201The crash report has been successfully created.CreateCrashreportResponseSchema
400Invalid input.No Content
404No device with the given uuid could be found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/crashreports/
Request body
{
  "id" : "string",
  "logfiles" : [ "string" ],
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "is_fake_report" : true,
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "boot_reason" : "string",
  "power_on_reason" : "string",
  "power_off_reason" : "string",
  "next_logfile_key" : 0,
  "created_at" : "string"
}

Example HTTP response

Response 201
{
  "device_local_id" : 0
}

GET /hiccup/api/v1/devices/{uuid}/crashreports/

Description

List crash reports

Parameters

TypeNameDescriptionSchema
Pathuuid
required
string
Querybuild_fingerprint
optional
string
Querydevice
optional
string
Querylimit
optional
Number of results to return per page.integer
Queryoffset
optional
The initial index from which to return the results.integer
Queryradio_version
optional
string

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
count
required
Example : 0integer
next
optional
Example : "string"string (uri)
previous
optional
Example : "string"string (uri)
results
required
Example : [ "[crashreport](#crashreport)" ]< CrashReport > array

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/crashreports/

Example HTTP response

Response 200
"object"

POST /hiccup/api/v1/devices/{uuid}/crashreports/{device_local_id}/logfile_put/{filename}/

Description

Upload a log file for a crash report.

Parameters

TypeNameSchema
Pathdevice_local_id
required
string
Pathfilename
required
string
Pathuuid
required
string

Body parameter

Name : data
Flags : required
Type : LogFile

Responses

HTTP CodeDescriptionSchema
201CreatedNo Content
400Invalid input.No Content
404Crashreport does not exist.No Content

Consumes

  • \*/*

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/crashreports/string/logfile_put/string/
Request body
{
  "id" : 0,
  "logfile_type" : "string",
  "logfile" : "string",
  "crashreport_local_id" : 0,
  "created_at" : "string",
  "crashreport" : 0
}

POST /hiccup/api/v1/devices/{uuid}/heartbeats/

Description

Create a heartbeat

Parameters

TypeNameSchema
Pathuuid
required
string

Body parameter

Name : data
Flags : required
Type : HeartBeat

Responses

HTTP CodeDescriptionSchema
201HeartBeat
400Invalid input.No Content
404No device with the given uuid could be found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/heartbeats/
Request body
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

Example HTTP response

Response 201
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

GET /hiccup/api/v1/devices/{uuid}/heartbeats/

Description

List heartbeats

Parameters

TypeNameDescriptionSchema
Pathuuid
required
string
Querybuild_fingerprint
optional
string
Querydevice
optional
string
Querylimit
optional
Number of results to return per page.integer
Queryoffset
optional
The initial index from which to return the results.integer
Queryradio_version
optional
string

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
count
required
Example : 0integer
next
optional
Example : "string"string (uri)
previous
optional
Example : "string"string (uri)
results
required
Example : [ "[heartbeat](#heartbeat)" ]< HeartBeat > array

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/heartbeats/

Example HTTP response

Response 200
"object"

GET /hiccup/api/v1/devices/{uuid}/heartbeats/{device_local_id}/

Description

Get a heartbeat

Parameters

TypeNameSchema
Pathdevice_local_id
required
integer
Pathuuid
required
string

Responses

HTTP CodeDescriptionSchema
200HeartBeat
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/heartbeats/0/

Example HTTP response

Response 200
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

PUT /hiccup/api/v1/devices/{uuid}/heartbeats/{device_local_id}/

Description

Update a heartbeat

Parameters

TypeNameSchema
Pathdevice_local_id
required
integer
Pathuuid
required
string

Body parameter

Name : data
Flags : required
Type : HeartBeat

Responses

HTTP CodeDescriptionSchema
200HeartBeat
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/heartbeats/0/
Request body
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

Example HTTP response

Response 200
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

DELETE /hiccup/api/v1/devices/{uuid}/heartbeats/{device_local_id}/

Description

Delete a heartbeat

Parameters

TypeNameSchema
Pathdevice_local_id
required
integer
Pathuuid
required
string

Responses

HTTP CodeDescriptionSchema
204No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/heartbeats/0/

PATCH /hiccup/api/v1/devices/{uuid}/heartbeats/{device_local_id}/

Description

Partially update a heartbeat

Parameters

TypeNameSchema
Pathdevice_local_id
required
integer
Pathuuid
required
string

Body parameter

Name : data
Flags : required
Type : HeartBeat

Responses

HTTP CodeDescriptionSchema
200HeartBeat
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/devices/string/heartbeats/0/
Request body
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

Example HTTP response

Response 200
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

POST /hiccup/api/v1/heartbeats/

Description

Create a heartbeat

Body parameter

Name : data
Flags : required
Type : HeartBeat

Responses

HTTP CodeDescriptionSchema
201HeartBeat
400Invalid input.No Content
404No device with the given uuid could be found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/heartbeats/
Request body
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

Example HTTP response

Response 201
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

GET /hiccup/api/v1/heartbeats/

Description

List heartbeats

Parameters

TypeNameDescriptionSchema
Querybuild_fingerprint
optional
string
Querydevice
optional
string
Querylimit
optional
Number of results to return per page.integer
Queryoffset
optional
The initial index from which to return the results.integer
Queryradio_version
optional
string

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
count
required
Example : 0integer
next
optional
Example : "string"string (uri)
previous
optional
Example : "string"string (uri)
results
required
Example : [ "[heartbeat](#heartbeat)" ]< HeartBeat > array

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/heartbeats/

Example HTTP response

Response 200
"object"

GET /hiccup/api/v1/heartbeats/{id}/

Description

Get a heartbeat

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this heart beat.integer

Responses

HTTP CodeDescriptionSchema
200HeartBeat
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/heartbeats/0/

Example HTTP response

Response 200
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

PUT /hiccup/api/v1/heartbeats/{id}/

Description

Update a heartbeat

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this heart beat.integer

Body parameter

Name : data
Flags : required
Type : HeartBeat

Responses

HTTP CodeDescriptionSchema
200HeartBeat
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/heartbeats/0/
Request body
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

Example HTTP response

Response 200
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

DELETE /hiccup/api/v1/heartbeats/{id}/

Description

Delete a heartbeat

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this heart beat.integer

Responses

HTTP CodeDescriptionSchema
204No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/heartbeats/0/

PATCH /hiccup/api/v1/heartbeats/{id}/

Description

Partially update a heartbeat

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this heart beat.integer

Body parameter

Name : data
Flags : required
Type : HeartBeat

Responses

HTTP CodeDescriptionSchema
200HeartBeat
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/heartbeats/0/
Request body
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

Example HTTP response

Response 200
{
  "id" : "string",
  "uuid" : "string",
  "device_local_id" : 0,
  "date" : "string",
  "app_version" : 0,
  "uptime" : "string",
  "build_fingerprint" : "string",
  "radio_version" : "string",
  "created_at" : "string"
}

GET /hiccup/api/v1/logfiles/

Description

List log files

Parameters

TypeNameDescriptionSchema
Querylimit
optional
Number of results to return per page.integer
Queryoffset
optional
The initial index from which to return the results.integer

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
count
required
Example : 0integer
next
optional
Example : "string"string (uri)
previous
optional
Example : "string"string (uri)
results
required
Example : [ "[logfile](#logfile)" ]< LogFile > array

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/logfiles/

Example HTTP response

Response 200
"object"

GET /hiccup/api/v1/logfiles/{id}/

Description

Get a log file

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this log file.integer

Responses

HTTP CodeDescriptionSchema
200LogFile
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/logfiles/0/

Example HTTP response

Response 200
{
  "id" : 0,
  "logfile_type" : "string",
  "logfile" : "string",
  "crashreport_local_id" : 0,
  "created_at" : "string",
  "crashreport" : 0
}

PUT /hiccup/api/v1/logfiles/{id}/

Description

Update a log file

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this log file.integer

Body parameter

Name : data
Flags : required
Type : LogFile

Responses

HTTP CodeDescriptionSchema
200LogFile
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/logfiles/0/
Request body
{
  "id" : 0,
  "logfile_type" : "string",
  "logfile" : "string",
  "crashreport_local_id" : 0,
  "created_at" : "string",
  "crashreport" : 0
}

Example HTTP response

Response 200
{
  "id" : 0,
  "logfile_type" : "string",
  "logfile" : "string",
  "crashreport_local_id" : 0,
  "created_at" : "string",
  "crashreport" : 0
}

DELETE /hiccup/api/v1/logfiles/{id}/

Description

Delete a log file

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this log file.integer

Responses

HTTP CodeDescriptionSchema
204No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/logfiles/0/

PATCH /hiccup/api/v1/logfiles/{id}/

Description

Partially update a log file

Parameters

TypeNameDescriptionSchema
Pathid
required
A unique integer value identifying this log file.integer

Body parameter

Name : data
Flags : required
Type : LogFile

Responses

HTTP CodeDescriptionSchema
200LogFile
400Invalid input.No Content
404Not found.No Content

Tags

  • hiccup

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup/api/v1/logfiles/0/
Request body
{
  "id" : 0,
  "logfile_type" : "string",
  "logfile" : "string",
  "crashreport_local_id" : 0,
  "created_at" : "string",
  "crashreport" : 0
}

Example HTTP response

Response 200
{
  "id" : 0,
  "logfile_type" : "string",
  "logfile" : "string",
  "crashreport_local_id" : 0,
  "created_at" : "string",
  "crashreport" : 0
}

GET /hiccup_stats/api/v1/device_overview/{uuid}/

Description

Get some general statistics for a device.

Parameters

TypeNameSchema
Pathuuid
required
string

Responses

HTTP CodeDescriptionSchema
200OKDeviceStatOverview
404Not found.No Content

DeviceStatOverview

NameDescriptionSchema
board_date
optional
Example : "string"string
crashes_per_day
optional
Example : 0.0number
crashreports
optional
Example : 0integer
heartbeats
optional
Example : 0integer
last_active
optional
Example : "string"string
smpl_per_day
optional
Example : 0.0number
smpls
optional
Example : 0integer
uuid
optional
Example : "string"string

Tags

  • hiccup_stats

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup_stats/api/v1/device_overview/string/

Example HTTP response

Response 200
"object"

GET /hiccup_stats/api/v1/device_report_history/{uuid}/

Description

Get the report history of a device

Parameters

TypeNameSchema
Pathuuid
required
string

Responses

HTTP CodeDescriptionSchema
200OK< DeviceReportHistoryEntry > array
404Not found.No Content

DeviceReportHistoryEntry

NameDescriptionSchema
date
optional
Example : "string"string
heartbeats
optional
Example : 0integer
other
optional
Example : 0integer
prob_crashes
optional
Example : 0integer
smpl
optional
Example : 0integer

Tags

  • hiccup_stats

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup_stats/api/v1/device_report_history/string/

Example HTTP response

Response 200
[ "object" ]

GET /hiccup_stats/api/v1/device_update_history/{uuid}/

Description

Get the update history of a device

Parameters

TypeNameSchema
Pathuuid
required
string

Responses

HTTP CodeDescriptionSchema
200OK< DeviceUpdateHistoryEntry > array
404Not found.No Content

DeviceUpdateHistoryEntry

NameDescriptionSchema
build_fingerprint
optional
Example : "string"string
heartbeats
optional
Example : 0integer
max
optional
Example : 0integer
other
optional
Example : 0integer
prob_crashes
optional
Example : 0integer
smpl
optional
Example : 0integer
update_date
optional
Example : "string"string

Tags

  • hiccup_stats

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup_stats/api/v1/device_update_history/string/

Example HTTP response

Response 200
[ "object" ]

GET /hiccup_stats/api/v1/logfile_download/{id}/

Description

Get a log file.

Parameters

TypeNameSchema
Pathid
required
string

Responses

HTTP CodeDescriptionSchema
200OKfile
404Not found.No Content

Tags

  • hiccup_stats

Security

TypeName
oauth2Google OAuth
apiKeyDevice token authentication

Example HTTP request

Request path
/hiccup_stats/api/v1/logfile_download/string/

Example HTTP response

Response 200
"file"

GET /hiccup_stats/api/v1/radio_version_daily/

Description

View for listing RadioVersionDaily instances.

Parameters

TypeNameDescriptionSchema
Querydate
optional
string
Querydate_end
optional
string
Querydate_start
optional
string
Queryheartbeats
optional
number
Querylimit
optional
Number of results to return per page.integer
Queryoffset
optional
The initial index from which to return the results.integer
Queryother
optional
number
Queryprob_crashes
optional
number
Querysmpl
optional
number
Queryversion
optional
string
Queryversion__is_beta_release
optional
string
Queryversion__is_official_release
optional
string
Queryversion__radio_version
optional
string

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
count
required
Example : 0integer
next
optional
Example : "string"string (uri)
previous
optional
Example : "string"string (uri)
results
required
Example : [ "[radioversiondaily](#radioversiondaily)" ]< RadioVersionDaily > array

Tags

  • hiccup_stats

Security

TypeName
oauth2Google OAuth

Example HTTP request

Request path
/hiccup_stats/api/v1/radio_version_daily/

Example HTTP response

Response 200
"object"

GET /hiccup_stats/api/v1/radio_versions/

Description

View for listing RadioVersion instances.

Parameters

TypeNameDescriptionSchema
Queryfirst_seen_after
optional
string
Queryfirst_seen_before
optional
string
Queryfirst_seen_on
optional
string
Queryheartbeats
optional
number
Queryis_beta_release
optional
string
Queryis_official_release
optional
string
Querylimit
optional
Number of results to return per page.integer
Queryoffset
optional
The initial index from which to return the results.integer
Queryother
optional
number
Queryprob_crashes
optional
number
Queryradio_version
optional
string
Queryreleased_after
optional
string
Queryreleased_before
optional
string
Queryreleased_on
optional
string
Querysmpl
optional
number

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
count
required
Example : 0integer
next
optional
Example : "string"string (uri)
previous
optional
Example : "string"string (uri)
results
required
Example : [ "[radioversion](#radioversion)" ]< RadioVersion > array

Tags

  • hiccup_stats

Security

TypeName
oauth2Google OAuth

Example HTTP request

Request path
/hiccup_stats/api/v1/radio_versions/

Example HTTP response

Response 200
"object"

GET /hiccup_stats/api/v1/status/

Description

Get the number of devices, crashreports and heartbeats

Responses

HTTP CodeDescriptionSchema
200OKStatus

Status

NameDescriptionSchema
crashreports
optional
Example : 0integer
devices
optional
Example : 0integer
heartbeats
optional
Example : 0integer

Tags

  • hiccup_stats

Security

TypeName
oauth2Google OAuth

Example HTTP request

Request path
/hiccup_stats/api/v1/status/

Example HTTP response

Response 200
"object"

GET /hiccup_stats/api/v1/version_daily/

Description

View for listing VersionDaily instances.

Parameters

TypeNameDescriptionSchema
Querydate
optional
string
Querydate_end
optional
string
Querydate_start
optional
string
Queryheartbeats
optional
number
Querylimit
optional
Number of results to return per page.integer
Queryoffset
optional
The initial index from which to return the results.integer
Queryother
optional
number
Queryprob_crashes
optional
number
Querysmpl
optional
number
Queryversion
optional
string
Queryversion__build_fingerprint
optional
string
Queryversion__is_beta_release
optional
string
Queryversion__is_official_release
optional
string

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
count
required
Example : 0integer
next
optional
Example : "string"string (uri)
previous
optional
Example : "string"string (uri)
results
required
Example : [ "[versiondaily](#versiondaily)" ]< VersionDaily > array

Tags

  • hiccup_stats

Security

TypeName
oauth2Google OAuth

Example HTTP request

Request path
/hiccup_stats/api/v1/version_daily/

Example HTTP response

Response 200
"object"

GET /hiccup_stats/api/v1/versions/

Description

View for listing versions.

Parameters

TypeNameDescriptionSchema
Querybuild_fingerprint
optional
string
Queryfirst_seen_after
optional
string
Queryfirst_seen_before
optional
string
Queryfirst_seen_on
optional
string
Queryheartbeats
optional
number
Queryis_beta_release
optional
string
Queryis_official_release
optional
string
Querylimit
optional
Number of results to return per page.integer
Queryoffset
optional
The initial index from which to return the results.integer
Queryother
optional
number
Queryprob_crashes
optional
number
Queryreleased_after
optional
string
Queryreleased_before
optional
string
Queryreleased_on
optional
string
Querysmpl
optional
number

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
count
required
Example : 0integer
next
optional
Example : "string"string (uri)
previous
optional
Example : "string"string (uri)
results
required
Example : [ "[version](#version)" ]< Version > array

Tags

  • hiccup_stats

Security

TypeName
oauth2Google OAuth

Example HTTP request

Request path
/hiccup_stats/api/v1/versions/

Example HTTP response

Response 200
"object"

Definitions

CrashReport

NameDescriptionSchema
app_version
required
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
boot_reason
required
Length : 1 - 200
Example : "string"
string
build_fingerprint
required
Length : 1 - 200
Example : "string"
string
created_at
optional
read-only
Example : "string"string (date-time)
date
required
Example : "string"string (date-time)
device_local_id
optional
Example : 0integer
id
optional
read-only
Example : "string"string
is_fake_report
optional
Example : trueboolean
logfiles
optional
read-only
Example : [ "string" ]< string (uri) > array
next_logfile_key
optional
Minimum value : 0
Maximum value : 2147483647
Example : 0
integer
power_off_reason
required
Length : 1 - 200
Example : "string"
string
power_on_reason
required
Length : 1 - 200
Example : "string"
string
radio_version
optional
Length : 1 - 200
Example : "string"
string
uptime
required
Length : 1 - 200
Example : "string"
string
uuid
required
Length : 1 - 64
Example : "string"
string

CreateCrashreportResponseSchema

NameDescriptionSchema
device_local_id
optional
Example : 0integer

Device

NameDescriptionSchema
board_date
required
Example : "string"string (date-time)
chipset
optional
Maximal length : 200
Example : "string"
string
id
optional
read-only
Example : 0integer
imei
optional
Maximal length : 32
Example : "string"
string
last_heartbeat
required
Example : "string"string (date-time)
next_per_crashreport_key
optional
Minimum value : 0
Maximum value : 2147483647
Example : 0
integer
next_per_heartbeat_key
optional
Minimum value : 0
Maximum value : 2147483647
Example : 0
integer
token
optional
Maximal length : 200
Example : "string"
string
user
required
Example : 0integer
uuid
optional
read-only
Minimum length : 1
Example : "string"
string

DeviceCreate

NameDescriptionSchema
board_date
required
Example : "string"string (date-time)
chipset
required
Maximal length : 200
Example : "string"
string

DeviceRegisterResponseSchema

NameDescriptionSchema
token
optional
Maximal length : 200
Example : "string"
string
uuid
optional
read-only
Minimum length : 1
Example : "string"
string

HeartBeat

NameDescriptionSchema
app_version
required
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
build_fingerprint
required
Length : 1 - 200
Example : "string"
string
created_at
optional
read-only
Example : "string"string (date-time)
date
required
Example : "string"string (date-time)
device_local_id
optional
Example : 0integer
id
optional
read-only
Example : "string"string
radio_version
optional
Length : 1 - 200
Example : "string"
string
uptime
required
Length : 1 - 200
Example : "string"
string
uuid
required
Length : 1 - 64
Example : "string"
string

LogFile

NameDescriptionSchema
crashreport
required
Example : 0integer
crashreport_local_id
optional
Minimum value : 0
Maximum value : 2147483647
Example : 0
integer
created_at
optional
read-only
Example : "string"string (date-time)
id
optional
read-only
Example : 0integer
logfile
optional
read-only
Example : "string"string (uri)
logfile_type
optional
Length : 1 - 36
Example : "string"
string

RadioVersion

NameDescriptionSchema
first_seen_on
required
Example : "string"string (date)
heartbeats
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
id
optional
read-only
Example : 0integer
is_beta_release
optional
Example : trueboolean
is_official_release
optional
Example : trueboolean
other
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
prob_crashes
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
radio_version
required
Length : 1 - 200
Example : "string"
string
released_on
required
Example : "string"string (date)
smpl
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer

RadioVersionDaily

NameDescriptionSchema
date
required
Example : "string"string (date)
heartbeats
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
id
optional
read-only
Example : 0integer
other
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
prob_crashes
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
radio_version
required
Minimum length : 1
Example : "string"
string
smpl
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
version
required
Example : 0integer

Version

NameDescriptionSchema
build_fingerprint
required
Length : 1 - 200
Example : "string"
string
first_seen_on
required
Example : "string"string (date)
heartbeats
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
id
optional
read-only
Example : 0integer
is_beta_release
optional
Example : trueboolean
is_official_release
optional
Example : trueboolean
other
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
prob_crashes
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
released_on
required
Example : "string"string (date)
smpl
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer

VersionDaily

NameDescriptionSchema
build_fingerprint
required
Minimum length : 1
Example : "string"
string
date
required
Example : "string"string (date)
heartbeats
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
id
optional
read-only
Example : 0integer
other
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
prob_crashes
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
smpl
optional
Minimum value : -2147483648
Maximum value : 2147483647
Example : 0
integer
version
required
Example : 0integer

Security

Device token authentication

Authenticate using a token that was returned on successful registration of a new device. The token can only be used to authenticate requests that target the device with the matching UUID. The token has to be put in the request header: 'Authorization: Token <AUTH_TOKEN>'

Type : apiKey
Name : Authorization
In : HEADER

Google OAuth

Authenticate using a Google account. Only E-mail addresses in the @fairphone.com domain are allowed.

Type : oauth2
Flow : implicit
Token URL : /accounts/google/login/callback/