commontoolsinc / synopsys

datastore service for datums
2 stars 1 forks source link

feat: implement blob store #44

Closed Gozala closed 3 weeks ago

Gozala commented 3 weeks ago
  1. Extends PUT method so that user can send a service a

    • JSON file which is import it into db when content-type: application/json is used.
    • Arbitrary blob and import it into blob store unless content-type: application/synopsys-query+json is used.
    • ⚠️ To subscribe client now needs to set content-type: application/synopsys-query+json and accept: text/event-stream headers.
    • Client can now also store query without subscribing using content-type: application/synopsys-query+json and accept: text/json headers.
  2. Adds HEAD method so that client can get metadata on stored blobs

  3. Extends GET method so that user can:

    • Fetch or embed blobs
    • Make HTTP Range requests
    • Get subscription via accept: text/event-stream header.
    • Get query selection without subscribing via accept: application/json header.