Skip to content

api: add the require_model for the app bricks (installed into an app) #90

@dido18

Description

@dido18

motivation

Add the required model boolean into the brick list installed into the app.

  • add the require_mode into the app brick list
 curl 127.0.0.1:8800/v1/apps/ZXhhbXBsZXM6dmlkZW8tZmFjZS1kZXRlY3Rpb24/bricks
{
  "bricks": [
    {
      "id": "arduino:video_object_detection",
      "name": "Video Object Detection",
      "author": "Arduino",
      "category": "",
      "status": "installed",
      "model": "face-detection"

     ...other
    //  added 
    "require_model": true
    },
    {
      "id": "arduino:web_ui",
      "name": "WebUI - HTML",
      "author": "Arduino",
      "category": "ui",
      "status": "installed"
     ...other
    //  added 
    "require_model": false // TODO or omitting if it is not requried a ai model
    }
  ]
}
  • add the require_model
 curl 127.0.0.1:8800/v1/apps/ZXhhbXBsZXM6dmlkZW8tZmFjZS1kZXRlY3Rpb24/bricks/arduino:video_object_detection 
{
  "id": "arduino:video_object_detection",
  "name": "Video Object Detection",
  "author": "Arduino",
  "category": "",
  "status": "installed",
  "model": "face-detection"
 ...other

//  added 
 "require_model": true

}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions