mitre / heimdall2

Heimdall Enterprise Server 2 lets you view, store, and compare automated security control scan results.
Other
206 stars 61 forks source link

Update and Complete the API curl documentation for Heimdall #3449

Open aaronlippold opened 2 years ago

aaronlippold commented 2 years ago

https://github.com/mitre/serverless-heimdall-pusher-lambda/blob/master/src/lambda_function.rb#L195-L205

# https://github.com/mitre/heimdall2#api-usage
# https://www.rubydoc.info/stdlib/net/Net%2FHTTPHeader:set_form
# https://github.com/socketry/multipart-post
#
 curl -v -F "data=@aws_config_hdf.json" \
  -F "filename=AWS-Config-Results-2021-03-12T15:24:47Z" \
  -F "public=true" \
  -F "evaluationTags=my-tag,my-other-tag" \
  -H "Authorization: Bearer <token>" \
  "http://my-heimdall/evaluations"

https://github.com/mitre/heimdall2/pull/3097 https://github.com/mitre/heimdall2/pull/3107

aaronlippold commented 2 years ago

We really need to find the place in the code where all this is defeind in NestJS and document it well.