Esempio n. 1
0
 *        path="/providers/{providerName}/capabilities.{type}",
 *        operationId="GetProviderCapabilities",
 *        summary="Gets the capabilities of the given FDO provider",
 *        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="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/capabilities.:format", function ($providerName, $format) use($app) {
    $ctrl = new MgFeatureServiceController($app);
    $ctrl->GetProviderCapabilities($providerName, $format);
});
/**
 *     @SWG\Get(
 *        path="/providers/{providerName}/datastores.{type}",
 *        operationId="EnumerateDataStores",
 *        summary="Enumerates the available data stores for this provider with the current connection string",
 *        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="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")
 *     )