curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/packages{
"data": [
{}
],
"pagination": {}
}Retrieve a list of all packages for a project
curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/packages{
"data": [
{}
],
"pagination": {}
}{
"data": [
{
"id": "pkg789",
"projectId": "proj123",
"version": "2.0.0",
"components": [
{ "id": "comp123", "name": "ProductCard", "type": "view", "version": 3 },
{ "id": "comp124", "name": "ArticleLayout", "type": "layout", "version": 2 }
],
"assets": [...],
"dependencies": [...],
"metadata": {
"author": "[email protected]",
"description": "Major update with new components"
},
"createdAt": "2024-03-25T10:00:00Z",
"updatedAt": "2024-03-25T10:00:00Z"
},
{
"id": "pkg456",
"projectId": "proj123",
"version": "1.1.0",
"components": [...],
"assets": [...],
"dependencies": [...],
"metadata": {
"author": "[email protected]",
"description": "Bug fixes and improvements"
},
"createdAt": "2024-03-22T10:00:00Z",
"updatedAt": "2024-03-22T10:00:00Z"
},
{
"id": "pkg123",
"projectId": "proj123",
"version": "1.0.0",
"components": [...],
"assets": [...],
"dependencies": [...],
"metadata": {
"author": "[email protected]",
"description": "Initial release"
},
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-20T10:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 3,
"pages": 1
}
}
curl -X GET "https://api.metabind.ai/v1/organizations/org123/projects/proj456/packages" \
-H "Authorization: Bearer YOUR_API_KEY"