muchdogesec / arango_taxii_server

A lightweight TAXII API wrapper for ArangoDB.
GNU Affero General Public License v3.0
2 stars 0 forks source link

Hide all `_` in object reponses #11

Open himynamesdave opened 2 weeks ago

himynamesdave commented 2 weeks ago
curl -X 'GET' \
  'http://127.0.0.1:8000/api/taxii2/arango_taxii_server_tests_database/collections/mitre_attack_enterprise/objects/relationship--cf2fdad6-76ad-5521-b6a0-3671ad1892b7/?limit=10' \
  -H 'accept: application/taxii+json' \
  -H 'Authorization: Basic cmVhZF91c2VyOnRlc3RpbmcxMjM='
{
  "more": false,
  "next": null,
  "objects": [
    {
      "_stix2arango_ref_err": false,
      "created": "2018-01-17T12:56:55.080Z",
      "created_by_ref": "identity--72e906ce-ca1b-5d73-adcd-9ea9eb66a1b4",
      "id": "relationship--cf2fdad6-76ad-5521-b6a0-3671ad1892b7",
      "modified": "2024-05-02T14:00:00.188Z",
      "object_marking_refs": [
        "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
      ],
      "relationship_type": "object-marking",
      "source_ref": "x-mitre-collection--1f5f1533-f617-4ca8-9ab4-6a02367fa019",
      "spec_version": "2.1",
      "target_ref": "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168",
      "type": "relationship"
    }
  ]
}

Most _ objects are omitted, however "_stix2arango_ref_err": false, still remains. It should not be shown in any responses.