Skip to content

Instantly share code, notes, and snippets.

@ezzatron
Created February 20, 2013 12:31
Show Gist options
  • Save ezzatron/4995202 to your computer and use it in GitHub Desktop.
Save ezzatron/4995202 to your computer and use it in GitHub Desktop.
Siesta API definition ideas
<?php
class Version1 extends AbstractApiDefinition
{
public function configure()
{
$this->setMajorVersion(1);
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
$this->incrementMinorVersion();
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
}
}
class Version2 extends AbstractApiDefinition
{
public function configure()
{
$this->setMajorVersion(2);
$this->extendsVersion(1);
// $this->deprecateRoute('kiuhsdfiuhsdf');
$this->remove('kiuhsdfiuhsdf');
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
$this->incrementMinorVersion();
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
}
}
class Version3 extends AbstractApiDefinition
{
public function configure()
{
$this->setMajorVersion(3);
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
$this->incrementMinorVersion();
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
$this->add('kjdfgiuhdfg', $endPoint);
}
}
@ezzatron
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment