Updated API spec

This commit is contained in:
eldadfux
2019-10-04 08:47:23 +03:00
parent 725ff4f424
commit 0b73e461d9
4 changed files with 16 additions and 10 deletions
+2 -2
View File
@@ -438,7 +438,7 @@ $utopia->get('/v1/open-api-2.json')
->param('platform', 'client', function () {return new WhiteList(['client', 'server']);}, 'Choose target platform.', true)
->param('extensions', 0, function () {return new Range(0, 1);}, 'Show extra data.', true)
->action(
function ($platform, $extensions) use ($response, $request, $utopia, $domain, $version, $services) {
function ($platform, $extensions) use ($response, $request, $utopia, $domain, $services) {
function fromCamelCase($input)
{
preg_match_all('!([A-Z][A-Z0-9]*(?=$|[A-Z][a-z0-9])|[A-Za-z][a-z0-9]+)!', $input, $matches);
@@ -476,7 +476,7 @@ $utopia->get('/v1/open-api-2.json')
$output = [
'swagger' => '2.0',
'info' => [
'version' => $version,
'version' => APP_VERSION_STABLE,
'title' => APP_NAME,
'description' => 'Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)',
'termsOfService' => 'https://appwrite.io/policy/terms',
+1
View File
@@ -26,6 +26,7 @@ const APP_USERAGENT = APP_NAME.'-Server/%s Please report abuse at '.APP_EMAIL_SE
const APP_MODE_ADMIN = 'admin';
const APP_LOCALES = ['cat', 'de', 'en', 'es', 'fi', 'fr', 'gr', 'he', 'hi', 'id', 'it', 'nl', /* 'no',*/ 'pt-br', 'pt-pt', 'ro', 'tr', 'ua', 'zh'];
const APP_PAGING_LIMIT = 15;
const APP_VERSION_STABLE = '0.2.0';
$register = new Registry();
$request = new Request();
+12 -7
View File
@@ -834,9 +834,9 @@
}
},
"appwrite": {
"version": "1.0.21",
"resolved": "https://registry.npmjs.org/appwrite/-/appwrite-1.0.21.tgz",
"integrity": "sha512-NfNG9JQkOQypanMKOGzPzHVTZP1MTDipbTkRveIfmNd0W25OAqpE1up9f7KHaAi8yha1uyqkYW6l9QgjECZMEw==",
"version": "1.0.22",
"resolved": "https://registry.npmjs.org/appwrite/-/appwrite-1.0.22.tgz",
"integrity": "sha512-ofwb9opdkoY+AV8W2AkZY1z7gAqRlBZhbFj4ZMC9+UYhRAtLfaGnuyfRaWIKMFt7DII2Or261newdlwL/R2NsQ==",
"dev": true
},
"archy": {
@@ -2517,7 +2517,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
@@ -2932,7 +2933,8 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
@@ -2988,6 +2990,7 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@@ -3031,12 +3034,14 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
"dev": true
"dev": true,
"optional": true
}
}
},
+1 -1
View File
@@ -4,7 +4,7 @@
"license": "BSD-3-Clause",
"repository": "public",
"devDependencies": {
"appwrite": "^1.0.21",
"appwrite": "^1.0.22",
"gulp": "^4.0.0",
"gulp-clean-css": "^4.0.0",
"gulp-concat": "2.5.2",