Skip to content

Commit

Permalink
Fix some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Cong committed Mar 8, 2018
1 parent 789d4b2 commit f40bb38
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions open-api/content/content-category.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ https://cloud.minapp.com/oserve/v1/content/1/category/1/

**接口**

`GET https://cloud.minapp.com/oserve/v1/content/1/category/1/`
`GET https://cloud.minapp.com/oserve/v1/content/1/category/`

**提交参数**

Expand Down Expand Up @@ -142,7 +142,7 @@ https://cloud.minapp.com/oserve/v1/content/1/category/

**接口**

`POST https://cloud.minapp.com/oserve/v1/content/`
`POST https://cloud.minapp.com/oserve/v1/content/:content_group_id/category/`

**参数说明**

Expand Down
2 changes: 1 addition & 1 deletion open-api/content/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ https://cloud.minapp.com/oserve/v1/content/1/text/
}
```

## 创建内容分类
## 创建内容

**接口**

Expand Down
16 changes: 9 additions & 7 deletions open-api/data/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
| user:<:user_id> | String| 某个用户可写/可读 |
| gid:<:group_id> | String| 某个分组下的用户可写/可读 |

具体描述与使用场景可参考[ACL 访问控制列表](../dashboard/acl.md)
具体描述与使用场景可参考[ACL 访问控制列表](../../dashboard/acl.md)

参数 schema 用于存储数据表字段的元信息,其结构遵循[JSON-Table-Schema][https://frictionlessdata.io/specs/table-schema/]的描述。
参数 schema 用于存储数据表字段的元信息,其结构遵循[JSON-Table-Schema](https://frictionlessdata.io/specs/table-schema/)的描述。

例:

Expand Down Expand Up @@ -60,18 +60,20 @@
| 属性 | 类型 | 必填 | 说明 |
| :-------------- | :------------ |:---| :-- |
| name | String(32) || 字段名(字母开头,字母、数字、下划线的组合) |
| type | String || 字段类型,可选: 等 |
| type | String || 字段类型 |
| items | Object || 列表元素类型,array 字段类型必填 |
| format | String || geojson 字段类型必填,值默认为 `default` |
| description | String || 字段的描述,不填自动赋值为字段名称 |
| constraints | Object || 字段的约束属性,仅支持 required 属性 |
| default | 跟字段类型一样 || 字段的默认值 |
| default | 跟字段类型一致 || 字段的默认值 |
| acl | Object || 字段权限相关的属性 |
| coordinate_type | String || geojson 字段类型必填|

`type` 目前支持 string、integer、number、boolean、array、geojson、file、date 等
`items` 目前支持 string、integer、number、boolean 等
`coordinate_type` 目前支持 wgs84(地球坐标)、gcj02(火星坐标)
- `type` 目前支持 string、integer、number、boolean、array、geojson、file、date 等

- `items` 目前支持 string、integer、number、boolean 等

- `coordinate_type` 目前支持 wgs84(地球坐标)、gcj02(火星坐标)

若字段是 array 类型,字段元信息为:

Expand Down
4 changes: 2 additions & 2 deletions user-dash/content/content-category.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ https://cloud.minapp.com/userve/v1/content/1/category/1/

**接口**

`GET https://cloud.minapp.com/userve/v1/content/1/category/1/`
`GET https://cloud.minapp.com/userve/v1/content/1/category/`

**提交参数**

Expand Down Expand Up @@ -130,7 +130,7 @@ https://cloud.minapp.com/userve/v1/content/1/category/

**接口**

`POST https://cloud.minapp.com/userve/v1/content/`
`POST https://cloud.minapp.com/userve/v1/content/:content_group_id/category/`

**参数说明**

Expand Down
2 changes: 1 addition & 1 deletion user-dash/content/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ https://cloud.minapp.com/userve/v1/content/1/text/
}
```

## 创建内容分类
## 创建内容

**接口**

Expand Down
4 changes: 2 additions & 2 deletions user-dash/data/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

具体描述与使用场景可参考[ACL 访问控制列表](../dashboard/acl.md)

参数 schema 用于存储数据表字段的元信息,其结构遵循[JSON-Table-Schema][https://frictionlessdata.io/specs/table-schema/]的描述。
参数 schema 用于存储数据表字段的元信息,其结构遵循[JSON-Table-Schema](https://frictionlessdata.io/specs/table-schema/)的描述。

例:

Expand Down Expand Up @@ -60,7 +60,7 @@
| 属性 | 类型 | 必填 | 说明 |
| :-------------- | :------------ |:---| :-- |
| name | String(32) || 字段名(字母开头,字母、数字、下划线的组合) |
| type | String || 字段类型,可选: 等 |
| type | String || 字段类型 |
| items | Object || 列表元素类型,array 字段类型必填 |
| format | String || geojson 字段类型必填,值默认为 `default` |
| description | String || 字段的描述,不填自动赋值为字段名称 |
Expand Down

0 comments on commit f40bb38

Please sign in to comment.