ctengel / objectindex

Index your objects
GNU General Public License v3.0
1 stars 0 forks source link

Build RESTful API #10

Closed ctengel closed 2 years ago

ctengel commented 2 years ago

Based on #4 #9

  1. I want to upload this thing I just downloaded off the internet
    • or i already did?
  2. I want to discover stuff in object store
  3. I want to upload stuff I found on a hard drive (noting that MC doesn't have a DB)
  4. I want to get a cached version of a URL
  5. I want to list files with a given metadata filters
  6. I want to list a directory from a HD

POST /upload - this is a convenience function etc which basically if they know some stuff about a file it either sends them to existing or creates stuff to allow an actual upload

return -

POST /upload/objid

POST /file (dynamic create object) POST /object (discovered object) GET files

search by metadata, prefix, bucket, etc single item lookup by hash, name, etc to get real location redirect to real location

note

ctengel commented 2 years ago
ctengel commented 2 years ago

https://flask-restx.readthedocs.io/en/latest/marshalling.html#custom-fields is a big help