Select Git revision
WmsServices.class.inc
WmsServices.class.inc 20.60 KiB
<?php
/**
* \file WmsServices.class.inc
* \class WmsServices
*
* \author Armand Bahi <armand.bahi@veremes.com>.
*
* \brief This file contains the WmsServices php class
*
* This class defines Rest Api to Vmap4MapServer WmsServices
*
*/
require_once 'Vmap4MapServer.class.inc';
require_once 'WmsService.class.inc';
require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc';
require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc';
require_once 'Vm4msMetadataAccess.class.inc';
class WmsServices extends Vmap4MapServer {
/**
* @SWG\Definition(
* definition="/wmsservices",
* allOf={
* @SWG\Schema(ref="#/definitions/wmsservices")
* }
* )
* * @SWG\Tag(
* name="WmsServices",
* description=""
* )
*/
/**
* construct
* @param type $aPath url of the request
* @param type $aValues parameters of the request
* @param type $properties properties
* @param type $bShortcut false to reinit variables
* @param type $oConnection connection object
*/
function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) {
parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection);
$this->aSelectedFields = Array("wmsservice_id", "description", "definition", "web_id", "web_name");
}
/**
* @SWG\Get(path="/wmsservices",
* tags={"WmsServices"},
* summary="Get Wms Services",
* description="Request to get Wms Services",
* operationId="GET",
* produces={"application/xml", "application/json", "application/x-vm-json"},
* @SWG\Parameter(
* name="token",
* in="query",
* description="user token",
* required=true,
* type="string"
* ),
* @SWG\Parameter(
* name="order_by",
* in="query",
* description="list of ordering fields",
* required=false,
* type="string"
* ),
* @SWG\Parameter(
* name="sort_order",
* in="query",