ngsild_swagger.json 44.6 KB
Newer Older
                        "description": "Not Found",
                        "schema": {
                            "$ref": "ngsild_schema.json#/definitions/ApiErrorResponse"
                        }
                    }
                }
            },
            "delete": {
                "description": "Removes a specific context source discovery Subscription from an NGSI-LD system",
                "operationId": "removeCSourceSubscription",
                "parameters": [
                    {
                        "name": "subscriptionId",
                        "description": "Id (URI) context source discovery Subscription to be removed",
                        "in": "path",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content. The context source discovery Subscription was removed successfully"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "ngsild_schema.json#/definitions/ApiErrorResponse"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "ngsild_schema.json#/definitions/ApiErrorResponse"
                        }
                    }
                }
            },
            "patch": {
                "description": "Updates a specific context source discovery Subscription within an NGSI-LD system",
                "operationId": "updateCSourceSubscription",
                "parameters": [
                    {
                        "name": "subscriptionId",
                        "description": "Id (URI) context source discovery Subscription to be updated",
                        "in": "path",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "SubscriptionFragment",
                        "description": "Subscription Fragment including id, type and any other Subscription field to be updated",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "ngsild_subscriptions_schema.json#/definitions/SubscriptionFragment"
                        }
                    }
                ],
                "consumes": [
                    "application/json",
                    "application/ld+json"
                ],
                "responses": {
                    "204": {
                        "description": "No Content. The context source discovery Subscription was updated successfully"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "ngsild_schema.json#/definitions/ApiErrorResponse"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "ngsild_schema.json#/definitions/ApiErrorResponse"
                        }
                    }
                }
            }
        }
    }
}