Tracebook Documents

The iOS Tracebook is written is Swift and SwiftUI.

GitHub

The Swift source code can be found at on GitHub.
https://github.com/marcuspainter/Tracebook

Postman

A collection of API requests used by the app.
https://www.postman.com/marcuspainter/workspace/tracebook/overview

Bubble.io API

More information about using the Bubble API for Tracebook can be found here:

The API is limited to returning 100 items at a time. To get the next items, the cursor parameter must be used. To start, set the cursor to 0. The response contains the number of items remaining. Items should be retrieved until the remains count is zero.

Base URL

https://trace-book.org/api/1.1/obj/

Item Response

classDiagram Response "1" --> "*" Item class Response { +response: Item } class Item { +id }
{
    "response": {
        "id" : "1",
         ...
    }
}Code language: JSON / JSON with Comments (json)

List Response

{
    "response": {
        "cursor": 0,
        "results": [
            { 
               "id": "1",
               ... 
            },
            { 
               "id": "2",
               ... 
            }
         ],
        "count": 14,
        "remaining": 0
    }
}Code language: JSON / JSON with Comments (json)

Tracebook API

The measurements consist of 2 parts. The measurement header, then the additional content.

classDiagram Measurement "1" --> "1" MeasurementContent MeasurementContent "1" --> "1" Measurement MeasurementContent "1" --> "1" Microphone MeasurementContent "1" --> "1" Interface MeasurementContent "1" --> "1" Analyzer class Measurement { + Id + Addtional Content } class MeasurementContent { + Id + _Measurement + _Microphone + _Interface + _Analyzer } class Microphone { + Id } class Interface { + Id } class Analyzer { + Id }

Measurement

This example gets a list of public measurements sorted by "Created Date".

https://trace-book.org/api/1.1/obj/measurement?constraints=[ { "key": "Public", "constraint_type": "equals", "value": "true"} ]&cursor=0&additional_sort_fields=[ { "sort_field": "Created Date", "descending": "true"}]

The "Additional content" property contains the id of the measurement content.

Measurement Content

Use the id from the measurement to get the measurement content.

https://trace-book.org/api/1.1/obj/measurementcontent/1701541284662x312646422310158340

Microphone

https://trace-book.org/api/1.1/obj/microphone

Interface

https://trace-book.org/api/1.1/obj/interface

Analyzer

https://trace-book.org/api/1.1/obj/analyzer

User

https://trace-book.org/api/1.1/obj/user/1660054305439x264101487122056400

Scroll to Top