Revision 61031
Added by Alessia Bardi almost 3 years ago
applicationContext-dnet-modular-collector-plugins.xml | ||
---|---|---|
198 | 198 |
p:name="entityXpath" /> |
199 | 199 |
<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter" |
200 | 200 |
p:name="resultOutputFormat" p:optional="true" /> |
201 |
<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter" |
|
202 |
p:name="requestHeaderMap" p:optional="true" /> |
|
201 | 203 |
</list> |
202 | 204 |
</property> |
203 | 205 |
</bean> |
Also available in: Unified diff
REST plugin accepts optional Request Headers parameters as json map, e.g. {Accept:application/json}. This is useful to support PostgREST endpoints: they need a param in the header to return proper json. request headers must also be exploited for the pagination (not implemented in this commit). More details on PostgREST at https://postgrest.org/en/stable/api.html.
This commit also include minor refactoring