-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from folio-org/MODLISTS-72
MODLISTS-72: adding DTO file for list versions part1
- Loading branch information
Showing
2 changed files
with
95 additions
and
0 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
72 changes: 72 additions & 0 deletions
72
src/main/resources/swagger.api/schemas/ListVersionDTO.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,72 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "List Version DTO", | ||
"type": "object", | ||
"properties": { | ||
"id" : { | ||
"description": "Version id", | ||
"type": "string", | ||
"format": "UUID" | ||
}, | ||
"name" : { | ||
"description": "List name", | ||
"type": "string" | ||
}, | ||
"description" : { | ||
"description": "List description", | ||
"type": "string" | ||
}, | ||
"userFriendlyQuery" : { | ||
"description": "User Friendly Query", | ||
"type": "string" | ||
}, | ||
"fqlQuery" : { | ||
"description": "FQL Query", | ||
"type": "string" | ||
}, | ||
"fields": { | ||
"description": "Fields to be included in list contents", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"isActive" : { | ||
"description": "Indicates a List is Active or not", | ||
"type": "boolean" | ||
}, | ||
"isPrivate" : { | ||
"description": "Indicates a List is Private or not", | ||
"type": "boolean" | ||
}, | ||
"updatedBy": { | ||
"description": "ID of the user who last updated the record (when available)", | ||
"type": "string", | ||
"format": "UUID" | ||
}, | ||
"updatedByUsername": { | ||
"description": "Username of the user who last updated the record (when available)", | ||
"type": "string" | ||
}, | ||
"updatedDate": { | ||
"description": "Date and time when the record was last updated", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"listId": { | ||
"description": "list id", | ||
"type": "string", | ||
"format": "UUID" | ||
}, | ||
"version": { | ||
"description": "Number of version", | ||
"type": "integer" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"id", | ||
"name", | ||
"version" | ||
] | ||
} |