Skip to content

api: add the require_model boolen in brick list/details #88

@dido18

Description

@dido18

Motivation

The FE must know if a brick requires a model.

This is needed for the following cases:

  • show the icon "ai" in the brick list
  • show the available models when a brick is added.

proposal

  • add the require_model in the list bricks
curl 127.0.0.1:8800/v1/bricks
 "bricks": [
    {
      "id": "arduino:dbstorage_sqlstore",
      "name": "Database - SQL",
      "author": "Arduino",
      "description": "Simplified database storage layer for Arduino sensor data using SQLite local database.",
      "category": "storage",
      "status": "installed",
     // added 
   "require_model": false
    },
    {
      "id": "arduino:object_detection",
      "name": "Object Detection",
      "author": "Arduino",
      "description": "",
      "category": "video",
      "status": "installed",

    // added 
    "require_model": true
    },
  • add the require_model in the brick details
curl 127.0.0.1:8800/v1/bricks/arduino:object_detection 
{
  "id": "arduino:object_detection",
  "name": "Object Detection",
  "author": "Arduino",
  "description": "",
   .... other

 "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