Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
webservices
cern-search
cern-search-rest-api
Commits
c325b42e
Commit
c325b42e
authored
May 15, 2020
by
Carina Antunes
Browse files
[
SEARCH-79
] EDMS: schemas improvements
parent
d91dcf56
Changes
11
Hide whitespace changes
Inline
Side-by-side
cern_search_rest_api/modules/cernsearch/jsonschemas/edms/edms/document_v3.0.0.json
deleted
100644 → 0
View file @
d91dcf56
{
"title"
:
"EDMS Object Type Document schema v3.0.0"
,
"id"
:
"http://0.0.0.0:5000/schemas/edms/document_v3.0.0.json"
,
"$schema"
:
"http://0.0.0.0:5000/schemas/edms/document_v3.0.0.json"
,
"type"
:
"object"
,
"properties"
:
{
"_access"
:
{
"type"
:
"object"
,
"properties"
:
{
"owner"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"read"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"update"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"delete"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
}
},
"_data"
:
{
"type"
:
"object"
,
"properties"
:
{
"object_type"
:
{
"type"
:
"string"
},
"cid"
:
{
"type"
:
"integer"
},
"document_id"
:
{
"type"
:
"integer"
},
"cern_id"
:
{
"type"
:
"string"
},
"external_reference"
:
{
"type"
:
"string"
},
"version"
:
{
"type"
:
"string"
},
"latest_version"
:
{
"type"
:
"boolean"
},
"title"
:
{
"type"
:
"string"
},
"description"
:
{
"type"
:
"string"
},
"context"
:
{
"type"
:
"object"
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"context_id"
:
{
"type"
:
"string"
}
}
},
"document_type"
:
{
"type"
:
"string"
},
"release_procedure"
:
{
"type"
:
"string"
},
"status"
:
{
"type"
:
"string"
},
"obsolete"
:
{
"type"
:
"boolean"
},
"author"
:
{
"type"
:
"object"
,
"properties"
:
{
"full_name"
:
{
"type"
:
"string"
},
"email"
:
{
"type"
:
"string"
}
}
},
"keywords"
:
{
"type"
:
"string"
},
"equipment_code"
:
{
"type"
:
"string"
},
"attributes"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
}
},
"owner"
:
{
"type"
:
"string"
},
"group"
:{
"type"
:
"string"
},
"parents"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
}
},
"status"
:
{
"type"
:
"string"
},
"object_properties"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
}
},
"creation_date"
:
{
"type"
:
"string"
},
"modification_date"
:
{
"type"
:
"string"
},
"control_number"
:
{
"type"
:
"string"
},
"$schema"
:
{
"type"
:
"string"
}
}
}
\ No newline at end of file
cern_search_rest_api/modules/cernsearch/jsonschemas/edms/edms/document_v4.0.0.json
deleted
100644 → 0
View file @
d91dcf56
{
"title"
:
"EDMS Object Type Document schema v4.0.0"
,
"id"
:
"http://0.0.0.0:5000/schemas/edms/document_v4.0.0.json"
,
"$schema"
:
"http://0.0.0.0:5000/schemas/edms/document_v4.0.0.json"
,
"type"
:
"object"
,
"properties"
:
{
"_access"
:
{
"type"
:
"object"
,
"properties"
:
{
"owner"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"read"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"update"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"delete"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
}
},
"_data"
:
{
"type"
:
"object"
,
"properties"
:
{
"document_id"
:
{
"type"
:
"integer"
},
"document_id_version"
:
{
"type"
:
"string"
},
"cern_id"
:
{
"type"
:
"string"
},
"cern_id_version"
:
{
"type"
:
"string"
},
"external_reference"
:
{
"type"
:
"string"
},
"version"
:
{
"type"
:
"string"
},
"title"
:
{
"type"
:
"string"
},
"description"
:
{
"type"
:
"string"
},
"author"
:
{
"type"
:
"object"
,
"properties"
:
{
"full_name"
:
{
"type"
:
"string"
},
"email"
:
{
"type"
:
"string"
}
}
},
"keywords"
:
{
"type"
:
"string"
},
"equipment_code"
:
{
"type"
:
"string"
}
}
},
"cid"
:
{
"type"
:
"integer"
},
"owner"
:
{
"type"
:
"string"
},
"group"
:{
"type"
:
"string"
},
"object_type"
:
{
"type"
:
"string"
},
"parents"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
}
},
"status"
:
{
"type"
:
"string"
},
"latest_version"
:
{
"type"
:
"boolean"
},
"obsolete"
:
{
"type"
:
"boolean"
},
"context"
:
{
"type"
:
"object"
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"context_id"
:
{
"type"
:
"string"
}
}
},
"document_type"
:
{
"type"
:
"string"
},
"release_procedure"
:
{
"type"
:
"string"
},
"object_properties"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
}
},
"attributes"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"creation_date"
:
{
"type"
:
"string"
},
"modification_date"
:
{
"type"
:
"string"
},
"control_number"
:
{
"type"
:
"string"
},
"$schema"
:
{
"type"
:
"string"
}
}
}
\ No newline at end of file
cern_search_rest_api/modules/cernsearch/jsonschemas/edms/edms/file_v3.0.0.json
deleted
100644 → 0
View file @
d91dcf56
{
"title"
:
"EDMS Object Type File schema v3.0.0"
,
"id"
:
"http://0.0.0.0:5000/schemas/edms/file_v3.0.0.json"
,
"$schema"
:
"http://0.0.0.0:5000/schemas/edms/file_v3.0.0.json"
,
"type"
:
"object"
,
"properties"
:
{
"_access"
:
{
"type"
:
"object"
,
"properties"
:
{
"owner"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"read"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"update"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"delete"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
}
},
"_data"
:
{
"type"
:
"object"
,
"properties"
:
{
"object_type"
:
{
"type"
:
"string"
},
"cid"
:
{
"type"
:
"integer"
},
"document_id"
:
{
"type"
:
"integer"
},
"cern_id"
:
{
"type"
:
"string"
},
"file_id"
:
{
"type"
:
"integer"
},
"external_reference"
:
{
"type"
:
"string"
},
"version"
:
{
"type"
:
"string"
},
"latest_version"
:
{
"type"
:
"boolean"
},
"title"
:
{
"type"
:
"string"
},
"file_name"
:
{
"type"
:
"string"
},
"description"
:
{
"type"
:
"string"
},
"context"
:
{
"type"
:
"object"
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"context_id"
:
{
"type"
:
"string"
}
}
},
"document_type"
:
{
"type"
:
"string"
},
"release_procedure"
:
{
"type"
:
"string"
},
"obsolete"
:
{
"type"
:
"boolean"
},
"author"
:
{
"type"
:
"object"
,
"properties"
:
{
"full_name"
:
{
"type"
:
"string"
},
"email"
:
{
"type"
:
"string"
}
}
},
"keywords"
:
{
"type"
:
"string"
},
"equipment_code"
:
{
"type"
:
"string"
},
"attributes"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"b64"
:
{
"type"
:
"string"
,
"description"
:
"Base64 encoded binary file."
},
"content"
:
{
"type"
:
"object"
,
"description"
:
"Extracted content of the binary file"
,
"properties"
:
{
"content"
:
{
"type"
:
"string"
},
"title"
:
{
"type"
:
"string"
},
"keywords"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"author"
:
{
"type"
:
"string"
},
"content_type"
:
{
"type"
:
"string"
}
}
}
}
},
"owner"
:
{
"type"
:
"string"
},
"group"
:{
"type"
:
"string"
},
"parents"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"properties"
:
{
"parent_type"
:
{
"type"
:
"string"
},
"parent_id"
:
{
"type"
:
"string"
}
}
}
},
"status"
:
{
"type"
:
"string"
},
"object_properties"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"value"
:
{
"type"
:
"string"
}
}
}
},
"creation_date"
:
{
"type"
:
"string"
},
"modification_date"
:
{
"type"
:
"string"
},
"control_number"
:
{
"type"
:
"string"
},
"$schema"
:
{
"type"
:
"string"
}
}
}
\ No newline at end of file
cern_search_rest_api/modules/cernsearch/jsonschemas/edms/edms/file_v4.0.0.json
deleted
100644 → 0
View file @
d91dcf56
{
"title"
:
"EDMS Object Type File schema v4.0.0"
,
"id"
:
"http://0.0.0.0:5000/schemas/edms/file_v4.0.0.json"
,
"$schema"
:
"http://0.0.0.0:5000/schemas/edms/file_v4.0.0.json"
,
"type"
:
"object"
,
"properties"
:
{
"_access"
:
{
"type"
:
"object"
,
"properties"
:
{
"owner"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"read"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"update"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"delete"
:{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
}
},
"_data"
:
{
"type"
:
"object"
,
"properties"
:
{
"object_type"
:
{
"type"
:
"string"
},
"cid"
:
{
"type"
:
"integer"
},
"document_id"
:
{
"type"
:
"integer"
},
"cern_id"
:
{
"type"
:
"string"
},
"file_id"
:
{
"type"
:
"integer"
},
"external_reference"
:
{
"type"
:
"string"
},
"version"
:
{
"type"
:
"string"
},
"latest_version"
:
{
"type"
:
"boolean"
},
"title"
:
{
"type"
:
"string"
},
"file_name"
:
{
"type"
:
"string"
},
"description"
:
{
"type"
:
"string"
},
"context"
:
{
"type"
:
"object"
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"context_id"
:
{
"type"
:
"string"
}
}
},
"document_type"
:
{
"type"
:
"string"
},
"release_procedure"
:
{
"type"
:
"string"
},
"obsolete"
:
{
"type"
:
"boolean"
},
"author"
:
{
"type"
:
"object"
,
"properties"
:
{