Additional HTTP API Endpoints
c3rb3ru5d3d53c opened this issue · 2 comments
c3rb3ru5d3d53c commented
- List of API Endpoints
- Implement the API Endpoints
c3rb3ru5d3d53c commented
HTTP API Endpoints
/api/<version>/ (prefix)
Done - GET /api/v1/samples/<str:sha256> (download sample)
Done - POST /api/v1/samples/<str:corpus>/<str:mode> (upload sample to sample queue)
Done - GET /api/v1/version (get version of pybinlex)
HEAD /api/v1/samples/<str:corpus>/<str:sha256> (check if sample exist)
POST /api/v1/traits (body contains raw mongodb query)
Done GET /api/v1/samples/corpra (list supported corpra)
Done GET /api/v1/samples/modes (list supported modes)
GET /api/v1/traits/<str:corpus>/<str:sha256> (list of sha256 samples with the same trait)
GET /api/v1/traits/<str:corpus>/<str:tlsh>/<int:distance> (list of sha256 samples with similar traits)
GET /api/v1/samples/<str:corpus>/<str:tlsh>/<int:distance> (list of similar traits)
GET /api/v1/traits/<str:hexstr> (Searching hexadecimal string by hand (de ad be ef), w/ wildcards)
POST /api/v1/traits/<corpus>/<sha256> (create tags a sha256 trait in a specific corpus)
POST /api/v1/samples/<corpus>/<sha256> (create tags sha256 of the sample in the object store)
DELETE /api/v1/traits/<corpus>/<sha256> (delete tag a sha256 trait in a specific corpus)
DELETE /api/v1/samples/<corpus>/<sha256> (delete tags sha256 of the sample in the object store)
DELETE /api/v1/samples/<str:corpus>/<str:mode> (delete sample from a corpus, including all traits)
GET /api/v1/samples/tags/<str:query> (get sample tags from query)
GET /api/v1/traits/tags/<str:query> (get trait tags from query)
GET /api/v1/traits/collect/tags/<str:query> (get all traits based on tag)
GET /api/v1/samples/collect/tags/<str:query> (get all samples based on tag)
POST /api/v1/traits/<str:sha256>/functions/ (specify the function name(s) to add)
DELETE /api/v1/traits/<str:sha256>/functions/ (delete the function name(s) from the trait sha256)
c3rb3ru5d3d53c commented
Keeping this one open just renaming the issue