* 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 folder resource ID"), * @SWG\Parameter(name="depth", in="query", required=false, type="integer", description="The depth at which to enumerate"), * @SWG\Parameter(name="computechildren", in="query", required=false, type="boolean", description="Indicates if data about children should be computed"), * @SWG\Parameter(name="type", in="query", required=false, type="string", description="An optional resource type to filter on", enum={"Folder", "FeatureSource", "LayerDefinition", "MapDefinition", "WebLayout", "ApplicationDefinition", "LoadProcedure", "DrawingSource", "SymbolLibrary", "PrintLayout", "SymbolDefinition"}), * @SWG\Parameter(name="dataType", in="path", required=true, type="string", description="xml, json or html", enum={"xml", "json", "html"}), * @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->get("/library/:resourcePath+/list.:format", function ($resourcePath, $format) use($app) { $resId = MgUtils::ParseLibraryResourceID($resourcePath, "list." . $format); $ctrl = new MgResourceServiceController($app); $ctrl->EnumerateResources($resId, $format); }); /** * @SWG\Get( * path="/library/{resourcePath}/data/{dataName}", * operationId="GetResourceData", * summary="Gets the specified resource data item for the 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="dataName", in="path", required=true, type="string", description="The name of the resource data to retrieve"), * @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") * ) */