Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CIM - Context Information Management
NGSI-LD API
Commits
f0a137fe
Commit
f0a137fe
authored
Nov 21, 2018
by
canterafonsj
Browse files
Subscription By Id
parent
6886a4b2
Changes
2
Show whitespace changes
Inline
Side-by-side
scripts/validate_schema.sh
View file @
f0a137fe
...
...
@@ -14,6 +14,8 @@ ajv compile -s $SCHEMAS/registrations/ContextSourceNotification.json -r $SCHEMAS
ajv compile
-s
$SCHEMAS
/EntityList.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
-r
$SCHEMAS
/Entity.json
ajv compile
-s
$SCHEMAS
/subscriptions/SubscriptionList.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
-r
$SCHEMAS
/subscriptions/Subscription.json
ajv compile
-s
$SCHEMAS
/temporal/EntityTemporalList.json
-r
$SCHEMAS
/temporal/EntityTemporal.json
-r
$SCHEMAS
/Entity.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv compile
-s
$SCHEMAS
/BatchOperationResult.json
-r
$SCHEMAS
/common.json
...
...
spec/updated/subscription-by-id-spec.json
0 → 100644
View file @
f0a137fe
{
"openapi"
:
"3.0.1"
,
"info"
:
{
"title"
:
"NGSI-LD Subscription By Id"
,
"version"
:
"latest"
},
"components"
:
{
"parameters"
:
{
"subscriptionId"
:
{
"name"
:
"subscriptionId"
,
"description"
:
"Subscription Id"
,
"in"
:
"path"
,
"required"
:
true
,
"schema"
:
{
"type"
:
"string"
,
"format"
:
"uri"
}
}
}
},
"paths"
:
{
"/subscriptions/{subscriptionId}"
:
{
"get"
:
{
"description"
:
"Retrieves a specific Subscription from an NGSI-LD system"
,
"operationId"
:
"retrieveSubscription"
,
"parameters"
:
[
{
"$ref"
:
"#/components/parameters/subscriptionId"
}
],
"responses"
:
{
"200"
:
{
"description"
:
"OK"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/subscriptions/Subscription.json#/definitions/Subscription"
},
"examples"
:
{
"simple"
:
{
"externalValue"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/examples/Subscription-example_C.4.json"
}
}
}
}
},
"400"
:
{
"description"
:
"Bad request"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails"
}
}
}
},
"404"
:
{
"description"
:
"Not Found"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails"
}
}
}
}
}
},
"delete"
:
{
"description"
:
"Removes a specific Subscription from an NGSI-LD system"
,
"operationId"
:
"removeSubscription"
,
"parameters"
:
[
{
"$ref"
:
"#/components/parameters/subscriptionId"
}
],
"responses"
:
{
"204"
:
{
"description"
:
"No Content. The Subscription was removed successfully"
},
"400"
:
{
"description"
:
"Bad Request"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails"
}
}
}
},
"404"
:
{
"description"
:
"Not Found"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails"
}
}
}
}
}
}
}
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment