* path="/library", * operationId="ApplyResourcePackage", * summary="Loads the specified package into the Site Repository", * tags={"library"}, * consumes={"multipart/form-data"}, * @SWG\Parameter(name="session", in="formData", required=false, type="string", description="Your MapGuide Session ID"), * @SWG\Parameter(name="MAX_FILE_SIZE", in="formData", required=true, type="integer", description="Maximum file size"), * @SWG\Parameter(name="package", in="formData", required=true, type="file", description="The package file to load"), * @SWG\Response(response=400, description="You supplied a bad request due to one or more missing or invalid parameters"), * @SWG\Response(response=401, description="Session ID or MapGuide credentials not specified"), * @SWG\Response(response=500, description="An error occurred during the operation") * ) */ $app->post("/library", function () use($app) { $ctrl = new MgResourceServiceController($app); $ctrl->ApplyResourcePackage(); }); /** * @SWG\Get( * path="/library/{resourcePath}/datalist.{type}", * operationId="EnumerateResourceData", * summary="Lists the resource data for a given resource", * tags={"library"}, * @SWG\Parameter(name="session", in="query", required=false, type="string", description="Your MapGuide Session ID"), * @SWG\Parameter(name="resourcePath", in="path", required=true, type="string", description="The path of the resource ID"), * @SWG\Parameter(name="type", in="path", required=true, type="string", description="xml or json", enum={"json", "xml"}), * @SWG\Response(response=400, description="You supplied a bad request due to one or more missing or invalid parameters"), * @SWG\Response(response=401, description="Session ID or MapGuide credentials not specified"), * @SWG\Response(response=500, description="An error occurred during the operation") * ) */