Skip to content

Commit

Permalink
Allow download of snort rules
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Oct 14, 2021
1 parent 5ec7efc commit d5ec96c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ specs/swagger-download-patch.json: specs/swagger-stripped-oauth.json

specs/swagger-pdf-download-patch.json: specs/swagger-download-patch.json
# We add missing binary response body spec to the swagger
jq '.paths."/intel/entities/report-files/v1"."get"."responses"."200"."schema"={"$$ref": "#/definitions/domain.DownloadItem"}' $< > $@
jq '.paths."/intel/entities/report-files/v1"."get"."responses"."200"."schema"={"$$ref": "#/definitions/domain.DownloadItem"} | .paths."/intel/entities/rules-latest-files/v1"."get"."responses"."200"."schema"={"$$ref": "#/definitions/domain.DownloadItem"}' $< > $@

specs/swagger.json:
@echo "Sorry swagger.json needs to be obtained manually at this moment"
Expand Down
22 changes: 18 additions & 4 deletions falcon/client/intel/get_latest_intel_rule_file_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions falcon/client/intel/intel_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d5ec96c

Please sign in to comment.