* @SWG\Delete( * path="/session/{session}/{resName}", * operationId="DeleteResource", * summary="Deletes the given resource", * tags={"session"}, * @SWG\Parameter(name="session", in="path", required=true, type="string", description="Your MapGuide Session ID"), * @SWG\Parameter(name="resName", in="path", required=true, type="string", description="The resource name (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->delete("/session/:sessionId/:resName", function ($sessionId, $resName) use($app) { $resId = new MgResourceIdentifier("Session:{$sessionId}//{$resName}"); $ctrl = new MgResourceServiceController($app); $ctrl->DeleteResource($resId); }); //================================== Tile Service APIs ======================================= /** * @SWG\Get( * path="/session/{session}/{resName}/tile.{type}/{groupName}/{scaleIndex}/{col}/{row}", * operationId="GetTile", * summary="Gets the specified tile for the given map definition", * tags={"session"}, * @SWG\Parameter(name="session", in="path", required=true, type="string", description="Your MapGuide Session ID"), * @SWG\Parameter(name="resName", in="path", required=true, type="string", description="The name of the Map Definition"), * @SWG\Parameter(name="groupName", in="path", required=true, type="string", description="The tiled group of the Map Definition"), * @SWG\Parameter(name="scaleIndex", in="path", required=true, type="integer", description="The finite scale index"), * @SWG\Parameter(name="col", in="path", required=true, type="integer", description="The column of the tile to fetch"), * @SWG\Parameter(name="row", in="path", required=true, type="integer", description="The row of the tile to fetch"), * @SWG\Parameter(name="type", in="path", required=true, type="string", description="The tile type", enum={"img"}),