* @SWG\Get( * path="/library/{resourcePath}/html", * operationId="ResourceInfoHtml", * summary="Generates a HTML information page for the given resource ID", * 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 (including extension)"), * @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+/html", function ($resourcePath) use($app) { $resId = MgUtils::ParseLibraryResourceID($resourcePath); $ctrl = new MgResourceServiceController($app); $ctrl->GetResourceInfo($resId, "html"); }); /** * @SWG\Get( * path="/library/{resourcePath}/content.{type}", * operationId="GetResourceContent", * summary="Gets the specified resource content for the given resource ID", * 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") * ) */