Esempio n. 1
0
});
/**
 *     @SWG\GET(
 *        path="/session/{session}/timeout.{type}",
 *        operationId="GetSessionTimeout",
 *        summary="Gets the session timeout of the specified session",
 *        tags={"session"},
 *          @SWG\Parameter(name="session", in="path", required=true, type="string", description="Your MapGuide Session 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")
 *     )
 */
$app->get("/session/:sessionId/timeout.:format", function ($sessionId, $format) use($app) {
    $ctrl = new MgRestServiceController($app);
    $ctrl->GetSessionTimeout($sessionId, $format);
});
/**
 *     @SWG\Get(
 *        path="/session/{session}/{mapName}.Map/image.{type}",
 *        operationId="RenderRuntimeMap",
 *        summary="Renders an image of the specified runtime map. Will also modify the map's state based on the parameters you specify",
 *        tags={"session"},
 *          @SWG\Parameter(name="session", in="path", required=true, type="string", description="Your MapGuide Session ID"),
 *          @SWG\Parameter(name="mapName", in="path", required=true, type="string", description="The name of the runtime map"),
 *          @SWG\Parameter(name="x", in="query", required=true, type="integer", description="The X coordinate of the map center to render"),
 *          @SWG\Parameter(name="y", in="query", required=true, type="integer", description="The Y coordinate of the map center to render"),
 *          @SWG\Parameter(name="scale", in="query", required=true, type="number", description="The map scale to render"),
 *          @SWG\Parameter(name="width", in="query", required=true, type="integer", description="The width of the image"),
 *          @SWG\Parameter(name="height", in="query", required=true, type="integer", description="The height of the image"),
Esempio n. 2
0
});
/**
 *     @SWG\Get(
 *        path="/services/fusioncontainers.{type}",
 *        operationId="EnumerateApplicationContainers",
 *        summary="Enumerates available containers for a fusion application",
 *        tags={"services"},
 *          @SWG\Parameter(name="session", in="query", required=false, type="string", description="Your MapGuide Session 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")
 *     )
 */
$app->get("/services/fusioncontainers.:format", function ($format) use($app) {
    $ctrl = new MgRestServiceController($app);
    $ctrl->EnumerateApplicationContainers($format);
});
/**
 *     @SWG\Post(
 *        path="/services/listunmanageddata.{responseType}",
 *        operationId="EnumerateUnmanagedData",
 *        summary="Enumerates files in an unmanaged aliased directory",
 *        tags={"services"},
 *          @SWG\Parameter(name="session", in="formData", required=false, type="string", description="Your MapGuide Session ID"),
 *          @SWG\Parameter(name="path", in="formData", required=false, type="string", description=""),
 *          @SWG\Parameter(name="type", in="formData", required=true, type="string", description="", enum={"Folders","Files","Both"}),
 *          @SWG\Parameter(name="filter", in="formData", required=false, type="string", description=""),
 *          @SWG\Parameter(name="recursive", in="formData", required=true, type="boolean", description=""),
 *          @SWG\Parameter(name="responseType", 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"),