Scripta-Qumranica-Electronica / Scrollery-website

SQE website
MIT License
3 stars 2 forks source link

Change CGI Response format #65

Open Bronson-Brown-deVost opened 6 years ago

Bronson-Brown-deVost commented 6 years ago

We should update the scrollery-cgi.pl and all axios requests to conform to 1 of the following request/response formats (type 3 is the preferred format):

  1. {REQUEST_WITH_CREDENTIALS} This returns an object {RESPONSE}

  2. {{CREDENTIALS}, “requests”: [ {REQUEST_1}, {REQUEST_2}, … ]} This returns an array of objects [{RESPONSE_1},{RESPONSE_2},…] (bare JSON array)

  3. {{CREDENTIALS}, “requests”: {REQUEST_1: {REQUEST_1}, REQUEST_2: {REQUEST_2}, … }}} This returns an object {REQUEST_1: {RESPONSE_1}, REQUEST_2: {RESPONSE_2}, … }