1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Create docs for api/sdk description

This commit is contained in:
kodumbeats 2021-09-27 20:26:33 -04:00
parent 4f86cb527e
commit 2c2b5f6232
8 changed files with 14 additions and 7 deletions

View file

@ -666,7 +666,7 @@ App::post('/v1/database/collections/:collectionId/attributes/string')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.namespace', 'database')
->label('sdk.method', 'createStringAttribute')
->label('sdk.description', '/docs/references/database/create-attribute-string.md')
->label('sdk.description', '/docs/references/database/create-string-attribute.md')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_ATTRIBUTE)
@ -714,7 +714,7 @@ App::post('/v1/database/collections/:collectionId/attributes/email')
->label('sdk.namespace', 'database')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.method', 'createEmailAttribute')
->label('sdk.description', '/docs/references/database/create-attribute-email.md')
->label('sdk.description', '/docs/references/database/create-email-attribute.md')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_ATTRIBUTE)
@ -756,7 +756,7 @@ App::post('/v1/database/collections/:collectionId/attributes/ip')
->label('sdk.namespace', 'database')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.method', 'createIpAttribute')
->label('sdk.description', '/docs/references/database/create-attribute-ip.md')
->label('sdk.description', '/docs/references/database/create-ip-attribute.md')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_ATTRIBUTE)
@ -798,7 +798,7 @@ App::post('/v1/database/collections/:collectionId/attributes/url')
->label('sdk.namespace', 'database')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.method', 'createUrlAttribute')
->label('sdk.description', '/docs/references/database/create-attribute-url.md')
->label('sdk.description', '/docs/references/database/create-url-attribute.md')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_ATTRIBUTE)
@ -840,7 +840,7 @@ App::post('/v1/database/collections/:collectionId/attributes/integer')
->label('sdk.namespace', 'database')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.method', 'createIntegerAttribute')
->label('sdk.description', '/docs/references/database/create-attribute-integer.md')
->label('sdk.description', '/docs/references/database/create-integer-attribute.md')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_ATTRIBUTE)
@ -904,7 +904,7 @@ App::post('/v1/database/collections/:collectionId/attributes/float')
->label('sdk.namespace', 'database')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.method', 'createFloatAttribute')
->label('sdk.description', '/docs/references/database/create-attribute-float.md')
->label('sdk.description', '/docs/references/database/create-float-attribute.md')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_ATTRIBUTE)
@ -968,7 +968,7 @@ App::post('/v1/database/collections/:collectionId/attributes/boolean')
->label('sdk.namespace', 'database')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.method', 'createBooleanAttribute')
->label('sdk.description', '/docs/references/database/create-attribute-boolean.md')
->label('sdk.description', '/docs/references/database/create-boolean-attribute.md')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_ATTRIBUTE)

View file

@ -0,0 +1 @@
Create a boolean attribute.

View file

@ -0,0 +1 @@
Create an email attribute.

View file

@ -0,0 +1 @@
Create a float attribute. Optionally, minimum and maximum values can be provided.

View file

@ -0,0 +1 @@
Create an integer attribute. Optionally, minimum and maximum values can be provided.

View file

@ -0,0 +1 @@
Create IP address attribute.

View file

@ -0,0 +1 @@
Create a new string attribute.

View file

@ -0,0 +1 @@
Create a URL attribute.