updated templates

This commit is contained in:
Tony Tam 2014-06-10 08:21:51 -07:00
parent ac40283501
commit 50f20ad836
7 changed files with 60 additions and 60 deletions

View File

@ -24,7 +24,7 @@ php -d detect_unicode=0 go-pear.phar
Then install PHPUnit:
```sh
pear config-set auto_discover
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
```

View File

@ -34,7 +34,7 @@ require_once 'wordnik/Swagger.php';
class BaseApiTest extends PHPUnit_Framework_TestCase {
public function setUp() {
$this->apiUrl = 'http://api.wordnik.com/v4';
$this->apiUrl = 'https://api.wordnik.com/v4';
$this->apiKey = getenv('API_KEY');
$this->username = getenv('USER_NAME');
$this->password = getenv('PASSWORD');

View File

@ -43,8 +43,8 @@ class AccountApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($password != null) {
$queryParams['password'] = $this->apiClient->toQueryValue($password);
@ -89,8 +89,8 @@ class AccountApi {
$method = "POST";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($username != null) {
$resourcePath = str_replace("{" . "username" . "}",
@ -134,8 +134,8 @@ class AccountApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($skip != null) {
$queryParams['skip'] = $this->apiClient->toQueryValue($skip);
@ -180,8 +180,8 @@ class AccountApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($api_key != null) {
$headerParams['api_key'] = $this->apiClient->toHeaderValue($api_key);
@ -220,8 +220,8 @@ class AccountApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);

View File

@ -49,8 +49,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($includeDuplicates != null) {
$queryParams['includeDuplicates'] = $this->apiClient->toQueryValue($includeDuplicates);
@ -106,8 +106,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
@ -165,8 +165,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($limit != null) {
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
@ -226,8 +226,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
@ -276,8 +276,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
@ -334,8 +334,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
@ -393,8 +393,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
@ -449,8 +449,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
@ -505,8 +505,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($limit != null) {
$queryParams['limit'] = $this->apiClient->toQueryValue($limit);
@ -557,8 +557,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
@ -605,8 +605,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($useCanonical != null) {
$queryParams['useCanonical'] = $this->apiClient->toQueryValue($useCanonical);
@ -652,8 +652,8 @@ class WordApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($word != null) {
$resourcePath = str_replace("{" . "word" . "}",

View File

@ -45,8 +45,8 @@ class WordListApi {
$method = "PUT";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
@ -83,8 +83,8 @@ class WordListApi {
$method = "DELETE";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
@ -121,8 +121,8 @@ class WordListApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
@ -169,8 +169,8 @@ class WordListApi {
$method = "POST";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);
@ -215,8 +215,8 @@ class WordListApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($sortBy != null) {
$queryParams['sortBy'] = $this->apiClient->toQueryValue($sortBy);
@ -275,8 +275,8 @@ class WordListApi {
$method = "POST";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);

View File

@ -43,8 +43,8 @@ class WordListsApi {
$method = "POST";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($auth_token != null) {
$headerParams['auth_token'] = $this->apiClient->toHeaderValue($auth_token);

View File

@ -63,8 +63,8 @@ class WordsApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($caseSensitive != null) {
$queryParams['caseSensitive'] = $this->apiClient->toQueryValue($caseSensitive);
@ -137,8 +137,8 @@ class WordsApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($date != null) {
$queryParams['date'] = $this->apiClient->toQueryValue($date);
@ -207,8 +207,8 @@ class WordsApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($query != null) {
$queryParams['query'] = $this->apiClient->toQueryValue($query);
@ -314,8 +314,8 @@ class WordsApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($hasDictionaryDef != null) {
$queryParams['hasDictionaryDef'] = $this->apiClient->toQueryValue($hasDictionaryDef);
@ -403,8 +403,8 @@ class WordsApi {
$method = "GET";
$queryParams = array();
$headerParams = array();
$headerParams['Accept'] = '(mediaType,application/json)';
$headerParams['Content-Type'] = '';
$headerParams['Accept'] = 'application/json';
$headerParams['Content-Type'] = 'application/json';
if($hasDictionaryDef != null) {
$queryParams['hasDictionaryDef'] = $this->apiClient->toQueryValue($hasDictionaryDef);