Commit 8fcdcd9c authored by Pablo Panero's avatar Pablo Panero
Browse files

Add webservices mappings and jsonschemas. Entrypoints added.

parent 644404fb
{
"title": "Webservice Generic Website schema v1.0.0",
"id": "http://localhost:5000/schemas/webservices/generic_website_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/webservices/generic_website_v1.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"
}
}
}
},
"name": {
"type": "string",
"description": "Website name or title."
},
"url": {
"type": "string",
"description": "Website URL."
},
"origin": {
"type": "string",
"description": "Website origin. Meaning FL or ATT, or SRC if its equals than url."
},
"last_updated": {
"type": "string",
"description": "Datetime of when the web page content was last updated."
},
"content": {
"type": "string",
"description": "Website content."
},
"extras": {
"type": "array",
"items": {
"type": "string"
},
"description": "Attachments and followed links present in the website"
},
"custom_pid": {
"type": "string"
},
"$schema": {
"type": "string"
}
}
}
\ No newline at end of file
{
"settings": {
"index.percolator.map_unmapped_fields_as_string": true,
"index.mapping.total_fields.limit": 50
},
"mappings": {
"generic_website_v1.0.0": {
"numeric_detection": true,
"_meta": {
"_owner": "CernSearch-Administrators@cern.ch"
},
"properties": {
"_access": {
"type": "nested",
"properties": {
"owner":{
"type": "keyword"
},
"read": {
"type": "keyword"
},
"update": {
"type": "keyword"
},
"delete": {
"type": "keyword"
}
}
},
"name": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"url": {
"type": "keyword"
},
"origin": {
"type": "keyword"
},
"content": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"extras": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"last_updated": {
"type": "date",
"format": "YYYY-MM-DDZHH:MM"
},
"custom_pid": {
"type": "keyword"
},
"$schema": {
"type": "keyword"
}
}
}
}
}
\ No newline at end of file
......@@ -91,11 +91,13 @@ setup(
],
'invenio_search.mappings': [
'cernsearch-test = cern_search_rest_api.modules.cernsearch.cernsearch_test.mappings',
'cernsearch-indico = cern_search_rest_api.modules.cernsearch.indico.mappings'
'cernsearch-indico = cern_search_rest_api.modules.cernsearch.indico.mappings',
'cernsearch-webservices = cern_search_rest_api.modules.cernsearch.webservices.mappings'
],
'invenio_jsonschemas.schemas': [
'cernsearch-test = cern_search_rest_api.modules.cernsearch.cernsearch_test.jsonschemas',
'cernsearch-indico = cern_search_rest_api.modules.cernsearch.indico.jsonschemas'
'cernsearch-indico = cern_search_rest_api.modules.cernsearch.indico.jsonschemas',
'cernsearch-webservices = cern_search_rest_api.modules.cernsearch.webservices.jsonschemas'
],
},
extras_require=extras_require,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment