Merge pull request #1425 from aztech-dev/api-collections-4.0

Add API get collection route
This commit is contained in:
Benoît Burnichon
2015-09-28 09:50:59 +02:00
4 changed files with 30 additions and 0 deletions

View File

@@ -462,6 +462,13 @@ class V1Controller extends Controller
];
}
public function getDataboxCollectionAction(Request $request, $base_id)
{
return Result::create($request, [
$this->listCollection($this->app->getApplicationBox()->get_collection($base_id))
])->createResponse();
}
/**
* Get a Response containing the collections of a \databox
*