-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MODFQMMGR-134 Add a value source API property for columns
This new property will allow us to configure an API endpoint as the source of available values for a column
- Loading branch information
1 parent
805d458
commit ada55b0
Showing
3 changed files
with
30 additions
and
1 deletion.
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
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
25 changes: 25 additions & 0 deletions
25
src/main/resources/swagger.api/schemas/valueSourceApi.json
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,25 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Value source API config", | ||
"description": "Configuration for a column's value source API, where the available values can be accessed", | ||
"type": "object", | ||
"properties": { | ||
"path": { | ||
"description": "Relative path to the FOLIO module API endpoint that can provide the available column values. Example: 'material-types'", | ||
"type": "string" | ||
}, | ||
"valueJsonPath": { | ||
"description": "JsonPath defining how to access the values provided by the API", | ||
"type": "string" | ||
}, | ||
"labelJsonPath": { | ||
"description": "JsonPath defining how to access the labels for the values provided by the API", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"path", | ||
"valueJsonPath", | ||
"labelJsonPath" | ||
] | ||
} |