* @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("/providers/:providerName/datastores.:format", function ($providerName, $format) use($app) { $ctrl = new MgFeatureServiceController($app); $ctrl->EnumerateDataStores($providerName, $format); }); /** * @SWG\Get( * path="/providers/{providerName}/connectvalues.{type}/{propName}", * operationId="GetConnectPropertyValues", * summary="Enumerates the available values for a given connection property.", * tags={"providers"}, * @SWG\Parameter(name="session", in="query", required=false, type="string", description="Your MapGuide Session ID"), * @SWG\Parameter(name="providerName", in="path", required=true, type="string", description="The FDO Provider"), * @SWG\Parameter(name="propName", in="path", required=true, type="string", description="The FDO Provider"), * @SWG\Parameter(name="connection", in="query", required=false, 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("/providers/:providerName/connectvalues.:format/:propName", function ($providerName, $format, $propName) use($app) { $ctrl = new MgFeatureServiceController($app); $ctrl->GetConnectPropertyValues($providerName, $propName, $format); });