예제 #1
0
 *     @SWG\Post(
 *        path="/services/copyresource",
 *        operationId="CopyResource",
 *        summary="Copies a resource from one resource ID to another",
 *        tags={"services"},
 *          @SWG\Parameter(name="source", in="formData", required=true, type="string", description="The Source Resource ID"),
 *          @SWG\Parameter(name="destination", in="formData", required=true, type="string", description="The Target Resource ID"),
 *          @SWG\Parameter(name="overwrite", in="formData", required=false, type="boolean", description="Indicates whether to overwrite the target resource if it exists"),
 *        @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("/services/copyresource", function () use($app) {
    $ctrl = new MgResourceServiceController($app);
    $ctrl->CopyResource();
});
/**
 *     @SWG\Post(
 *        path="/services/moveresource",
 *        operationId="MoveResource",
 *        summary="Moves a resource from one resource ID to another",
 *        tags={"services"},
 *          @SWG\Parameter(name="source", in="formData", required=true, type="string", description="The Source Resource ID"),
 *          @SWG\Parameter(name="destination", in="formData", required=true, type="string", description="The Target Resource ID"),
 *          @SWG\Parameter(name="overwrite", in="formData", required=false, type="boolean", description="Indicates whether to overwrite the target resource if it exists"),
 *          @SWG\Parameter(name="cascade", in="formData", required=false, type="boolean", description="Indicates whether to cascade any reference changes in related documents as a result of this change"),
 *        @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")
 *     )