Skip to content

Commit

Permalink
refactor(dpc/rest-api): reorganaize directory structures
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Oct 20, 2024
1 parent 433405a commit 86ac6cd
Show file tree
Hide file tree
Showing 34 changed files with 24 additions and 24 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ properties:
externalResources:
type: array
items:
$ref: './externalResource.yml'
$ref: '../common/externalResource.yml'
title:
type: string
example: "Post Title"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ properties:
externalResources:
type: array
items:
$ref: './externalResource.yml'
$ref: '../common/externalResource.yml'
tags:
type: array
items:
$ref: './tag.yml'
$ref: '../common/tag.yml'
description:
type: string
example: "Post description... not HTML strings"
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/archives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ get:
schema:
type: array
items:
$ref: '../../components/schemas/simpleArticle.yml'
$ref: '../../components/schemas/response/simpleArticle.yml'
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/articles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ get:
articles:
type: array
items:
$ref: '../../components/schemas/article.yml'
$ref: '../../components/schemas/response/article.yml'
required:
- count
- articles
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/author.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ get:
application/json:
schema:
type: object
$ref: '../../components/schemas/author.yml'
$ref: '../../components/schemas/response/author.yml'
404:
description: Author not found
content:
Expand Down
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ get:
schema:
type: array
items:
$ref: '../../components/schemas/author.yml'
$ref: '../../components/schemas/response/author.yml'
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/contentTypes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ get:
application/json:
schema:
items:
$ref: '../../components/schemas/contentType.yml'
$ref: '../../components/schemas/response/contentType.yml'
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/contents/getByPath.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ get:
content:
application/json:
schema:
$ref: '../../../components/schemas/responseContent.yml'
$ref: '../../../components/schemas/response/content.yml'
404:
description: Content not found
content:
Expand Down
4 changes: 2 additions & 2 deletions docs/rest-api/paths/v1/contents/upsert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ post:
content:
application/json:
schema:
$ref: '../../../components/schemas/requestContent.yml'
$ref: '../../../components/schemas/request/content.yml'
responses:
201:
description: Create or Update succeeded
content:
application/json:
schema:
$ref: '../../../components/schemas/responseContent.yml'
$ref: '../../../components/schemas/response/content.yml'
400:
description: BadRequest
content:
Expand Down
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/feeds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ get:
schema:
type: array
items:
$ref: '../../components/schemas/feed.yml'
$ref: '../../components/schemas/response/feed.yml'
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ get:
content:
application/json:
schema:
$ref: '../../components/schemas/applicationInfo.yml'
$ref: '../../components/schemas/response/applicationInfo.yml'
404:
description: Resource not found (If envval `QUALTET_HTTP_ENDPOINT_SYSTEM_METADATA_ENABLED` is `false` or not exists)
content:
Expand Down
4 changes: 2 additions & 2 deletions docs/rest-api/paths/v1/search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ get:
contents:
type: array
items:
$ref: '../../components/schemas/responseSearch.yml'
$ref: '../../components/schemas/response/search.yml'
required:
- count
- contents
Expand Down Expand Up @@ -98,7 +98,7 @@ get:
errors:
type: array
items:
$ref: '../../components/schemas/responseSearchUnprocessable.yml'
$ref: '../../components/schemas/errors/searchUnprocessable.yml'
required:
- type
- title
Expand Down
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/series/byName.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ get:
schema:
type: array
items:
$ref: '../../../components/schemas/series.yml'
$ref: '../../../components/schemas/response/series.yml'
404:
description: Series not found
content:
Expand Down
6 changes: 3 additions & 3 deletions docs/rest-api/paths/v1/series/series.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ get:
schema:
type: array
items:
$ref: '../../../components/schemas/series.yml'
$ref: '../../../components/schemas/response/series.yml'
post:
summary: Create or Update a series
tags:
Expand All @@ -23,14 +23,14 @@ post:
content:
application/json:
schema:
$ref: '../../../components/schemas/requestSeries.yml'
$ref: '../../../components/schemas/request/series.yml'
responses:
201:
description: Create or Update succeeded
content:
application/json:
schema:
$ref: '../../../components/schemas/series.yml'
$ref: '../../../components/schemas/response/series.yml'
400:
description: BadRequest
content:
Expand Down
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/sitemaps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ get:
schema:
type: array
items:
$ref: '../../components/schemas/sitemap.yml'
$ref: '../../components/schemas/response/sitemap.yml'
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/tags/get.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ get:
application/json:
schema:
items:
$ref: '../../../components/schemas/tagWithCount.yml'
$ref: '../../../components/schemas/response/tagWithCount.yml'
2 changes: 1 addition & 1 deletion docs/rest-api/paths/v1/tags/getByName.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ get:
application/json:
schema:
items:
$ref: '../../../components/schemas/simpleArticle.yml'
$ref: '../../../components/schemas/response/simpleArticle.yml'
404:
description: Tag not found
content:
Expand Down
4 changes: 2 additions & 2 deletions docs/rest-api/paths/v1/token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ post:
content:
application/json:
schema:
$ref: '../../components/schemas/requestToken.yml'
$ref: '../../components/schemas/request/token.yml'
responses:
201:
description: Create an IDToken succeeded
content:
application/json:
schema:
$ref: '../../components/schemas/idToken.yml'
$ref: '../../components/schemas/response/idToken.yml'
400:
description: Payload is wrong
content:
Expand Down

0 comments on commit 86ac6cd

Please sign in to comment.