Thanks to visit codestin.com
Credit goes to busabase.com

Busabase
OpenAPI Reference

Sharing

Public link sharing for individual nodes.

GET
/api/v1/nodes/{nodeId}/share

Path Parameters

nodeId*string

Response Body

application/json

curl -X GET "https://example.com/api/v1/nodes/string/share"
{  "nodeId": "string",  "scope": "none",  "capability": "read",  "hasPassword": true,  "expiresAt": "string",  "updatedAt": "string"}
POST
/api/v1/nodes/{nodeId}/share

Path Parameters

nodeId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/nodes/string/share" \  -H "Content-Type: application/json" \  -d '{    "scope": "none"  }'
{  "nodeId": "string",  "scope": "none",  "capability": "read",  "hasPassword": true,  "expiresAt": "string",  "updatedAt": "string"}
DELETE
/api/v1/nodes/{nodeId}/share

Path Parameters

nodeId*string

Response Body

application/json

curl -X DELETE "https://example.com/api/v1/nodes/string/share"
{  "nodeId": "string",  "scope": "none",  "capability": "read",  "hasPassword": true,  "expiresAt": "string",  "updatedAt": "string"}