mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
[bridges] migrate all bridges to an array based definition of parameters
see github issue 356 Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
2f09ae56ad
commit
f0e502ce37
79 changed files with 1381 additions and 2316 deletions
|
@ -6,29 +6,25 @@ class CastorusBridge extends BridgeAbstract {
|
|||
$this->uri = 'http://www.castorus.com';
|
||||
$this->description = "Returns the latest changes";
|
||||
|
||||
$this->parameters["Get latest changes"] = '[]';
|
||||
$this->parameters["Get latest changes via ZIP code"] =
|
||||
'[
|
||||
{
|
||||
"name": "ZIP code",
|
||||
"identifier" : "zip",
|
||||
"type" : "text",
|
||||
"required" : true,
|
||||
"exampleValue" : "74910, 74",
|
||||
"title" : "Insert ZIP code (complete or partial)"
|
||||
}
|
||||
]';
|
||||
$this->parameters["Get latest changes via city name"] =
|
||||
'[
|
||||
{
|
||||
"name": "City name",
|
||||
"identifier" : "city",
|
||||
"type" : "text",
|
||||
"required" : true,
|
||||
"exampleValue" : "Seyssel, Seys",
|
||||
"title" : "Insert city name (complete or partial)"
|
||||
}
|
||||
]';
|
||||
$this->parameters["Get latest changes"] = array();
|
||||
$this->parameters["Get latest changes via ZIP code"] = array(
|
||||
'zip'=>array(
|
||||
'name'=>'ZIP code',
|
||||
'type'=>'text',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'74910, 74',
|
||||
'title'=>'Insert ZIP code (complete or partial)'
|
||||
)
|
||||
);
|
||||
$this->parameters["Get latest changes via city name"] = array(
|
||||
'city'=>array(
|
||||
'name'=>'City name',
|
||||
'type'=>'text',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'Seyssel, Seys',
|
||||
'title'=>'Insert city name (complete or partial)'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// Extracts the tile from an actitiy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue