-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(doc/rest-api): fix response schema when upsert content
- Loading branch information
1 parent
b46c69a
commit 7ca6013
Showing
3 changed files
with
63 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
docs/rest-api/components/schemas/response/contentDetail.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
type: object | ||
properties: | ||
id: | ||
type: string | ||
format: ulid | ||
example: "01fgvhme5b7cj0m5agr9f4g2ca" | ||
title: | ||
type: string | ||
example: "Post Title" | ||
robotsAttributes: | ||
type: string | ||
description: "Comma separated values." | ||
example: "noarchive, noimageindex" | ||
externalResources: | ||
type: array | ||
items: | ||
$ref: '../common/externalResource.yml' | ||
tags: | ||
type: array | ||
items: | ||
$ref: '../common/tag.yml' | ||
description: | ||
type: string | ||
example: "Post description... not HTML strings" | ||
content: | ||
type: string | ||
example: "Post Content.... HTML strings" | ||
length: | ||
type: integer | ||
example: 1252 | ||
authorName: | ||
type: string | ||
description: "This field return from `authors.display_name` column value." | ||
example: "Jhon Due" | ||
publishedAt: | ||
type: long | ||
description: Unix time | ||
example: 1625065509 | ||
updatedAt: | ||
type: long | ||
description: Unix time | ||
example: 1627095819 | ||
required: | ||
- id | ||
- title | ||
- robotsAttributes | ||
- externalResources | ||
- tags | ||
- description | ||
- content | ||
- length | ||
- authorName | ||
- publishedAt | ||
- updatedAt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters