Get all models belonging to a supplier if the current authenticated user belongs to this supplier.
If this user is admin, it can query any supplier.
To call any
/suppliers/{id}/models
endpoints, you need to use a JWT token or an API token for authorization.
{
"code": 200,
"message": "OK; models found.",
"data": [
{
"id": "int",
"version_number": "int",
"created_at": "string",
"updated_at": null,
"locked_by_id": null,
"general": {
"name": "string"
}
}
],
"links": {},
"errors": []
}
200
OK; Models found.
401
User is not part of this supplier.
404
No models found.