Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions content/guides/pro/api.ja-JP.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,50 @@ title: API
}}
/>

### スナップショットを生成する

<APITable
request={{
method: 'GET',
url: '/universer-api/snapshot/{type}/unit/{unitID}/rev/0/ensure',
parametersType: 'Query',
parameters: [{
name: 'type',
type: 'enum(int)',
required: true,
description: '1(doc)、2(sheet)',
}, {
name: 'unitID',
type: 'string',
required: true,
description: 'ドキュメント ID',
}],
example: `curl -X GET 'http://localhost:8000/universer-api/snapshot/2/unit/ETVf-B4lQqOSE_p09mcp9Q/rev/0/ensure'`,
}}
response={{
type: 'application/json',
parameters: [{
name: 'error',
type: 'object',
properties: [{
name: 'code',
type: 'enum(int)',
description: '1(成功)',
}, {
name: 'message',
type: 'string',
description: 'エラーメッセージ',
}],
}],
example: JSON.stringify({
error: {
code: 1,
message: '',
},
}, null, 2),
}}
/>

## ファイルとインポート/エクスポート

### ファイルアップロード
Expand Down
44 changes: 44 additions & 0 deletions content/guides/pro/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,50 @@ This page lists common Univer Server APIs. The default base URL is `http://local
}}
/>

### Create Snapshot

<APITable
request={{
method: 'GET',
url: '/universer-api/snapshot/{type}/unit/{unitID}/rev/0/ensure',
parametersType: 'Query',
parameters: [{
name: 'type',
type: 'enum(int)',
required: true,
description: '1 (doc), 2 (sheet) for path',
}, {
name: 'unitID',
type: 'string',
required: true,
description: 'Document id',
}],
example: `curl -X GET 'http://localhost:8000/universer-api/snapshot/2/unit/ETVf-B4lQqOSE_p09mcp9Q/rev/0/ensure'`,
}}
response={{
type: 'application/json',
parameters: [{
name: 'error',
type: 'object',
properties: [{
name: 'code',
type: 'enum(int)',
description: '1 (success)',
}, {
name: 'message',
type: 'string',
description: 'Error message',
}],
}],
example: JSON.stringify({
error: {
code: 1,
message: '',
},
}, null, 2),
}}
/>

## Files and Import/Export

### Upload File
Expand Down
44 changes: 44 additions & 0 deletions content/guides/pro/api.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,50 @@ title: API
}}
/>

### 生成快照

<APITable
request={{
method: 'GET',
url: '/universer-api/snapshot/{type}/unit/{unitID}/rev/0/ensure',
parametersType: 'Query',
parameters: [{
name: 'type',
type: 'enum(int)',
required: true,
description: '1(doc),2(sheet)路径参数',
}, {
name: 'unitID',
type: 'string',
required: true,
description: '文档 id',
}],
example: `curl -X GET 'http://localhost:8000/universer-api/snapshot/2/unit/ETVf-B4lQqOSE_p09mcp9Q/rev/0/ensure'`,
}}
response={{
type: 'application/json',
parameters: [{
name: 'error',
type: 'object',
properties: [{
name: 'code',
type: 'enum(int)',
description: '1(成功)',
}, {
name: 'message',
type: 'string',
description: '失败信息',
}],
}],
example: JSON.stringify({
error: {
code: 1,
message: '',
},
}, null, 2),
}}
/>

## 文件与导入导出

### 上传文件
Expand Down
44 changes: 44 additions & 0 deletions content/guides/pro/api.zh-TW.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,50 @@ title: API
}}
/>

### 生成快照

<APITable
request={{
method: 'GET',
url: '/universer-api/snapshot/{type}/unit/{unitID}/rev/0/ensure',
parametersType: 'Query',
parameters: [{
name: 'type',
type: 'enum(int)',
required: true,
description: '1(doc),2(sheet)路徑參數',
}, {
name: 'unitID',
type: 'string',
required: true,
description: '文檔 id',
}],
example: `curl -X GET 'http://localhost:8000/universer-api/snapshot/2/unit/ETVf-B4lQqOSE_p09mcp9Q/rev/0/ensure'`,
}}
response={{
type: 'application/json',
parameters: [{
name: 'error',
type: 'object',
properties: [{
name: 'code',
type: 'enum(int)',
description: '1(成功)',
}, {
name: 'message',
type: 'string',
description: '失敗信息',
}],
}],
example: JSON.stringify({
error: {
code: 1,
message: '',
},
}, null, 2),
}}
/>

## 檔案與匯入匯出

### 上傳檔案
Expand Down
6 changes: 3 additions & 3 deletions examples/univer-vue2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

## Project setup

```
```shell
pnpm install
```

### Compiles and hot-reloads for development

```
```shell
pnpm run serve
```

### Compiles and minifies for production

```
```shell
pnpm run build
```

Expand Down
Loading