* path="/services/getschemamapping.{type}", * operationId="GetSchemaMapping", * summary="Gets schema mapping of a feature source", * tags={"services"}, * @SWG\Parameter(name="session", in="query", required=false, type="string", description="Your MapGuide Session ID"), * @SWG\Parameter(name="provider", in="query", required=true, type="string", description="The FDO Provider"), * @SWG\Parameter(name="connection", in="query", required=true, type="string", description="The partial connection string"), * @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/getschemamapping.:format", function ($format) use($app) { $ctrl = new MgFeatureServiceController($app); $ctrl->GetSchemaMapping($format); }); /** * @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") * ) */