Open himynamesdave opened 2 weeks ago
dgreenwood@Davids-MacBook-Pro-2 ~ % curl -X 'GET' \ 'http://127.0.0.1:8000/api/taxii2/' \ -H 'accept: application/taxii+json;version=2.1' \ -H 'Authorization: Basic bm9fYWNjZXNzX3VzZXI6dGVzdGluZzEyMw==' {"title":"Could not satisfy the request Accept header.","http_status":406,"details":{"content":{"message":"Could not satisfy the request Accept header.","code":"not_acceptable"}}}% dgreenwood@Davids-MacBook-Pro-2 ~ % curl -X 'GET' \ 'http://127.0.0.1:8000/api/taxii2/' \ -H 'accept: application/json' \ -H 'Authorization: Basic bm9fYWNjZXNzX3VzZXI6dGVzdGluZzEyMw==' {"title":"Arango TAXII Server","description":"https://github.com/muchdogesec/arango_taxii_server/","contact":"noreply@dogesec.com","api_roots":[]}%
As per the TAXII spec:
https://docs.oasis-open.org/cti/taxii/v2.1/taxii-v2.1.html
however, the server does not accept application/taxii+json;version=2.1 and only responds to application/json as per the example shown above.
application/taxii+json;version=2.1
application/json
The server should only accept requests where this is application/taxii+json;version=2.1
fixed in adding-tests branch
adding-tests
can you alter in the swagger ui?
shows application/taxii+json should be application/taxii+json;version=2.1
application/taxii+json
As per the TAXII spec:
https://docs.oasis-open.org/cti/taxii/v2.1/taxii-v2.1.html
however, the server does not accept
application/taxii+json;version=2.1
and only responds toapplication/json
as per the example shown above.The server should only accept requests where this is
application/taxii+json;version=2.1