-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(api-docs): clean up api documentation.
Previously, it was not possible to check request/response bodies samples in API documentation. This commit solves this error by refactoring the API documentation by using yaml for all api schemas/samples and decomposition of the open-api.yaml file. - decompose the mod-search.yaml file. - move all the paths into separate yaml files with corresponded folders inside paths folder. - move all the parameters into separate yaml files inside the parameters folder. - create yaml versions for all the examples. - create yaml versions for all the schemas. - delete example files with sample extension. - delete schemas files with json extension. Closes MSEARCH-546.
- Loading branch information
1 parent
270582f
commit 3579ddc
Showing
16 changed files
with
54 additions
and
27 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
1 change: 1 addition & 0 deletions
1
src/main/resources/swagger.api/examples/request/indexRecordRequestBody.yaml
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
example: | ||
- resourceName: instance | ||
type: CREATE | ||
tenant: diku | ||
|
3 changes: 2 additions & 1 deletion
3
src/main/resources/swagger.api/examples/request/indexRequestBody.yaml
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
resourceName: instance | ||
value: | ||
resourceName: instance |
4 changes: 3 additions & 1 deletion
4
src/main/resources/swagger.api/examples/request/streamIdsJobRequest.yaml
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
query: "title=*" | ||
value: | ||
query: "title=*" | ||
entityType: "INSTANCE" |
3 changes: 2 additions & 1 deletion
3
src/main/resources/swagger.api/examples/response/indexRecordResponse.yaml
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
status: success | ||
value: | ||
status: success |
10 changes: 6 additions & 4 deletions
10
src/main/resources/swagger.api/examples/response/streamIdsJobResponse.yaml
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
id: "eea1432c-beb8-4f4f-b96a-f8de977f1106" | ||
query: "title=*" | ||
status: "completed" | ||
createdDate: "1974-12-03T00:00:00" | ||
value: | ||
id: 'eea1432c-beb8-4f4f-b96a-f8de977f1106' | ||
query: 'title=*' | ||
status: 'COMPLETED' | ||
entityType: 'INSTANCE' | ||
createdDate: '1974-12-03T00:00:00' |
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
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,5 @@ | ||
name: recordType | ||
required: true | ||
in: path | ||
schema: | ||
$ref: '../schemas/entity/recordType.yaml' |
2 changes: 1 addition & 1 deletion
2
src/main/resources/swagger.api/parameters/sort-order-param.yaml
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
in: query | ||
name: sortOrder | ||
description: Defines sorting order | ||
description: 'Defines sorting order' | ||
required: false | ||
schema: | ||
$ref: '../schemas/entity/sortOrder.yaml' |
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
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
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
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
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
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
File renamed without changes.