inspirehep / beard-server

Application providing REST API over Beard
GNU General Public License v2.0
2 stars 4 forks source link

text: accept bulk request #10

Closed jacenkow closed 8 years ago

jacenkow commented 8 years ago

Since sending one author a time is very inefficient, beard-server should be able to accept a set of authors names to process. Thus the endpoint should accept POST request with JSON body containing a list of full names.

jacenkow commented 8 years ago

CC: @kaplun

kaplun commented 8 years ago

:+1: to be more precise this is related to the phonetic block interface.

Ideally the returned result should be a JSON dictionary so that it's possible to know what was mapped to what.

jacenkow commented 8 years ago

As an option, since we generate uuids on before_record_insert, we already know them while dispatching to beard-server, the returned dictionary could contain key representing signature's uuid and phonetic block as the value.

{'c19e97f1-7719-4640-97f8-7a9f30c01d23': 'CAPLANs'}
kaplun commented 8 years ago

If you pass the UUID in input as well yes. But I think it's not improving really the functionality, rather adding more data to transfer to the request and response...