curl --request GET \
--url https://api.example.com/app/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/app/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": "jane.doe@metabind.ai",
"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": "john.smith@metabind.ai",
"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": "jane.doe@metabind.ai",
"description": "Initial release"
},
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-20T10:00:00Z"
}
],
"pagination": {
"lastKey": "eyJ2ZXJzaW9uIjoiMS4wLjAifQ=="
}
}
curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/packages" \
-H "Authorization: Bearer YOUR_JWT"