API endpoint that allows Global provenance to be viewed or edited.

GET /sms/cv/api/v1/globalprovenances/4/compartments/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/vnd.api+json
Vary: Accept

{
    "data": [
        {
            "type": "Compartment",
            "id": "1",
            "attributes": {
                "term": "Atmosphere",
                "definition": "A site established primarily to measure meteorological properties or atmospheric deposition.",
                "provenance": null,
                "provenance_uri": "http://vocabulary.odm2.org/sitetype/atmosphere/",
                "category": null,
                "note": "",
                "status": "ACCEPTED",
                "requested_by_email": null,
                "discussion_url": null
            },
            "relationships": {
                "global_provenance": {
                    "links": {
                        "self": "https://sms-cv.helmholtz.cloud/sms/cv/api/v1/compartments/1/relationships/global_provenance?format=api",
                        "related": "https://sms-cv.helmholtz.cloud/sms/cv/api/v1/compartments/1/global_provenance/?format=api"
                    },
                    "data": {
                        "type": "GlobalProvenance",
                        "id": "4"
                    }
                },
                "sampling_media": {
                    "meta": {
                        "count": 2
                    },
                    "data": [
                        {
                            "type": "SamplingMedium",
                            "id": "9"
                        },
                        {
                            "type": "SamplingMedium",
                            "id": "25"
                        }
                    ],
                    "links": {
                        "self": "https://sms-cv.helmholtz.cloud/sms/cv/api/v1/compartments/1/relationships/sampling_media?format=api",
                        "related": "https://sms-cv.helmholtz.cloud/sms/cv/api/v1/compartments/1/sampling_media/?format=api"
                    }
                },
                "successor": {
                    "links": {
                        "self": "https://sms-cv.helmholtz.cloud/sms/cv/api/v1/compartments/1/relationships/successor?format=api",
                        "related": "https://sms-cv.helmholtz.cloud/sms/cv/api/v1/compartments/1/successor/?format=api"
                    }
                }
            },
            "links": {
                "self": "https://sms-cv.helmholtz.cloud/sms/cv/api/v1/compartments/1/?format=api"
            }
        }
    ]
}