Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
webservices
cern-search
cern-search-rest-api
Commits
96d6c3d7
Commit
96d6c3d7
authored
Apr 01, 2019
by
Pablo Panero
Browse files
config: add json-patch loader config
parent
6a2c0cb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
cern_search_rest_api/config.py
View file @
96d6c3d7
...
...
@@ -12,6 +12,7 @@ from __future__ import absolute_import, print_function
import
ast
import
copy
import
os
from
flask
import
request
from
invenio_oauthclient.contrib
import
cern
from
invenio_records_rest
import
config
as
irr_config
...
...
@@ -96,7 +97,8 @@ RECORDS_REST_ENDPOINTS = dict(
},
record_loaders
=
{
'application/json'
:
(
'cern_search_rest_api.modules.cernsearch.loaders:'
'csas_loader'
)
'csas_loader'
),
'application/json-patch+json'
:
lambda
:
request
.
get_json
(
force
=
True
)
},
search_class
=
'cern_search_rest_api.modules.cernsearch.search.RecordCERNSearch'
,
search_index
=
os
.
getenv
(
'CERN_SEARCH_INSTANCE'
,
'cernsearch-test'
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment