fix: specs
This commit is contained in:
parent
9631042645
commit
b8b3a69a55
15 changed files with 65 additions and 12 deletions
|
@ -185,7 +185,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'web',
|
'key' => 'web',
|
||||||
'name' => 'Console',
|
'name' => 'Console',
|
||||||
'version' => '0.6.0-rc.17',
|
'version' => '0.6.0-rc.18',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-console',
|
'url' => 'https://github.com/appwrite/sdk-for-console',
|
||||||
'package' => '',
|
'package' => '',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -195,7 +195,7 @@ return [
|
||||||
'family' => APP_PLATFORM_CONSOLE,
|
'family' => APP_PLATFORM_CONSOLE,
|
||||||
'prism' => 'javascript',
|
'prism' => 'javascript',
|
||||||
'source' => \realpath(__DIR__ . '/../sdks/console-web'),
|
'source' => \realpath(__DIR__ . '/../sdks/console-web'),
|
||||||
'gitUrl' => 'https://github.com/appwrite/sdk-for-console.git',
|
'gitUrl' => 'git@github.com:appwrite/sdk-for-console.git',
|
||||||
'gitBranch' => '1.5.x',
|
'gitBranch' => '1.5.x',
|
||||||
'gitRepoName' => 'sdk-for-console',
|
'gitRepoName' => 'sdk-for-console',
|
||||||
'gitUserName' => 'appwrite',
|
'gitUserName' => 'appwrite',
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -692,7 +692,7 @@ App::get('/v1/health/queue/usage-dump')
|
||||||
->label('scope', 'health.read')
|
->label('scope', 'health.read')
|
||||||
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
|
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
|
||||||
->label('sdk.namespace', 'health')
|
->label('sdk.namespace', 'health')
|
||||||
->label('sdk.method', 'getQueueUsage')
|
->label('sdk.method', 'getQueueUsageDump')
|
||||||
->label('sdk.description', '/docs/references/health/get-queue-usage-dump.md')
|
->label('sdk.description', '/docs/references/health/get-queue-usage-dump.md')
|
||||||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||||
|
|
|
@ -522,7 +522,7 @@ App::patch('/v1/projects/:projectId/api/all')
|
||||||
->label('scope', 'projects.write')
|
->label('scope', 'projects.write')
|
||||||
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])
|
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])
|
||||||
->label('sdk.namespace', 'projects')
|
->label('sdk.namespace', 'projects')
|
||||||
->label('sdk.method', 'updateAPIStatusAll')
|
->label('sdk.method', 'updateApiStatusAll')
|
||||||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||||
->label('sdk.response.model', Response::MODEL_PROJECT)
|
->label('sdk.response.model', Response::MODEL_PROJECT)
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
import { Client, Health } from "@appwrite.io/console";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2'); // Your project ID
|
||||||
|
|
||||||
|
const health = new Health(client);
|
||||||
|
|
||||||
|
const result = await health.getQueueUsage(
|
||||||
|
null // threshold (optional)
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(response);
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { Client, Health } from "@appwrite.io/console";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2'); // Your project ID
|
||||||
|
|
||||||
|
const health = new Health(client);
|
||||||
|
|
||||||
|
const result = await health.getStorage();
|
||||||
|
|
||||||
|
console.log(response);
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { Client, Projects } from "@appwrite.io/console";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2'); // Your project ID
|
||||||
|
|
||||||
|
const projects = new Projects(client);
|
||||||
|
|
||||||
|
const result = await projects.updateAPIStatusAll(
|
||||||
|
'<PROJECT_ID>', // projectId
|
||||||
|
false // status
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(response);
|
|
@ -0,0 +1,15 @@
|
||||||
|
import { Client, Projects, } from "@appwrite.io/console";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2'); // Your project ID
|
||||||
|
|
||||||
|
const projects = new Projects(client);
|
||||||
|
|
||||||
|
const result = await projects.updateApiStatus(
|
||||||
|
'<PROJECT_ID>', // projectId
|
||||||
|
.Rest, // api
|
||||||
|
false // status
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(response);
|
Loading…
Reference in a new issue