Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NGSI-LD API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CIM - Context Information Management
NGSI-LD API
Commits
31d34510
Commit
31d34510
authored
1 year ago
by
Ignacio Dominguez Martinez-Casanueva
Browse files
Options
Downloads
Patches
Plain Diff
Add Types API
parent
26ef6680
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ngsi-ld-api.yaml
+106
-0
106 additions, 0 deletions
ngsi-ld-api.yaml
with
106 additions
and
0 deletions
ngsi-ld-api.yaml
+
106
−
0
View file @
31d34510
...
@@ -1548,7 +1548,103 @@ paths:
...
@@ -1548,7 +1548,103 @@ paths:
$ref
:
'
#/components/responses/NotFound'
$ref
:
'
#/components/responses/NotFound'
503
:
503
:
$ref
:
'
#/components/responses/ServiceUnavailable'
$ref
:
'
#/components/responses/ServiceUnavailable'
/types
:
get
:
tags
:
-
Core API
-
Context Information Consumption
summary
:
Retrieve available entity types
description
:
5.7.5 Retrieve Available Entity Types
operationId
:
retrieveTypes
parameters
:
# Query params
-
name
:
details
in
:
query
description
:
|
If true, then detailed entity type information represented as an array with
elements of the Entity Type data structure (clause 5.2.25) is to be returned.
style
:
form
explode
:
true
schema
:
type
:
boolean
required
:
false
# Request headers
-
$ref
:
'
#/components/parameters/Headers.ngsildTenant'
responses
:
200
:
description
:
|
A response body containing the JSON-LD representation of the EntityTypeList
(clause 5.2.24) is to be returned, unless details=true is specified.
If details=true is specified, a response body containing a JSON-LD array
with elements of the EntityType data structure (clause 5.2.25) is to be returned.
content
:
application/json
:
schema
:
oneOf
:
-
type
:
array
items
:
$ref
:
'
#/components/schemas/EntityTypeList'
-
type
:
array
items
:
$ref
:
'
#/components/schemas/EntityType'
application/json+ld
:
schema
:
oneOf
:
-
allOf
:
-
type
:
object
required
:
-
'
@context'
properties
:
'
@context'
:
$ref
:
'
#/components/schemas/LdContext'
-
type
:
array
items
:
$ref
:
'
#/components/schemas/EntityTypeList'
-
allOf
:
-
type
:
object
required
:
-
'
@context'
properties
:
'
@context'
:
$ref
:
'
#/components/schemas/LdContext'
-
type
:
array
items
:
$ref
:
'
#/components/schemas/EntityType'
400
:
$ref
:
'
#/components/responses/BadRequest'
/types/{type}
:
get
:
tags
:
-
Core API
-
Context Information Consumption
summary
:
Retrieve available entity type info
description
:
5.7.7 Retrieve Available Entity Type Information
operationId
:
retrieveTypeInfo
parameters
:
# Path params
-
$ref
:
'
#/components/parameters/Path.type'
# Request headers
-
$ref
:
'
#/components/parameters/Headers.ngsildTenant'
responses
:
200
:
description
:
|
A response body containing the JSON-LD representation of
the detailed information about the available entity type.
content
:
application/json
:
schema
:
$ref
:
'
#/components/schemas/EntityTypeInfo'
application/json+ld
:
schema
:
allOf
:
-
type
:
object
required
:
-
'
@context'
properties
:
'
@context'
:
$ref
:
'
#/components/schemas/LdContext'
-
$ref
:
'
#/components/schemas/EntityTypeInfo'
components
:
components
:
headers
:
headers
:
Location
:
Location
:
...
@@ -1630,6 +1726,16 @@ components:
...
@@ -1630,6 +1726,16 @@ components:
type
:
string
type
:
string
format
:
uri
format
:
uri
required
:
true
required
:
true
Path.type
:
name
:
type
in
:
path
description
:
|
Name of the entity type for which detailed information is to be retrieved.
The Fully Qualified Name (FQN) as well as the short name can be used,
given that the latter is part of the JSON-LD @context provided.
schema
:
type
:
string
required
:
true
Query.aggrMethods
:
Query.aggrMethods
:
name
:
aggrMethods
name
:
aggrMethods
in
:
query
in
:
query
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment