cogmoteGO
  1. broadcast
cogmoteGO
  • data
    • Get experiments data
      GET
  • broadcast
    • List data broadcasting
      GET
    • Create data broadcasting
      POST
    • Subscribe data broadcasting
      GET
    • Get latest data
      GET
    • Upload data to specific data broadcasting
      POST
    • Delete broadcast
      DELETE
    • Subscribe mock data broadcasting
      GET
    • Get latest mock data
      GET
    • Subscribe default data broadcasting
      GET
    • Get latest data from default data broadcasting endpoint
      GET
    • Upload data to default data broadcasting
      POST
  • cmds
    • proxies
      • Get all command proxy
      • Create command proxy
      • Send command to proxy
      • Delete all command proxies
      • Delete a command proxy
  • exps
    • List experiment records
      GET
    • Register experiment
      POST
    • Delete experiments
      DELETE
    • Get experiment
      GET
    • Update experiment record
      PUT
    • Delete experiment
      DELETE
    • Init git experiment
      POST
    • update experiment git repository
      PUT
    • Switch to a branch
      POST
    • init archive experiment
      POST
    • Update archive experiment
      PUT
    • Start experiment
      POST
    • Start experiment by cmd
      POST
    • Stop experiment
      POST
  • infos
    • Get cagelab information
    • Update cagelab infomations
  • Get cagelab health
    GET
  • Get cagelab realtime status
    GET
  • Get whether cogmoteGO is running
    GET
  • Get device infomation
    GET
  1. broadcast

Get latest mock data

Testing
GET
/api/broadcast/data/mock/latest
Last modified:2025-08-11 20:59:49
Unlike the /api/broadcast/data/mock endpoint, this is a normal endpoint instead of an SSE endpoint, returning the latest piece of broadcast data

Request

None

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:9012/api/broadcast/data/mock/latest'

Responses

🟢200Success
application/json
Body

Example
{
    "message": {
        "trial_id": 1,
        "trial_start_time": 1745328619,
        "trial_stop_time": 1745328620,
        "trial_result": "correct"
    }
}
Modified at 2025-08-11 20:59:49
Previous
Subscribe mock data broadcasting
Next
Subscribe default data broadcasting
Built with