Skip to content

Commit

Permalink
updated swagger.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoabellagarcia committed Dec 5, 2023
1 parent 3ecb70e commit 088a9df
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions WeatherForecast/swagger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
# Copyleft (c) 2022 Contributors to Smart Data Models initiative
#


components:
schemas:
WeatherForecast:
$ref: "https://smart-data-models.github.io/dataModel.Weather/WeatherForecast/model.yaml#/WeatherForecast"
info:
description: |
A harmonised description of a Weather Forecast
title: WeatherForecast
version: "0.0.2"
openapi: "3.0.0"

paths:
/ngsi-ld/v1/entities:
get:
description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system"
parameters:
-
in: query
name: type
required: true
schema:
enum:
- WeatherForecast
type: string
responses:
? "200"
:
content:
application/ld+json:
examples:
keyvalues:
summary: "Key-Values Pairs"
value:
-
$ref: "https://smart-data-models.github.io/dataModel.Weather/WeatherForecast/examples/example.json"
normalized:
summary: "Normalized NGSI-LD"
value:
-
$ref: "https://smart-data-models.github.io/dataModel.Weather/WeatherForecast/examples/example-normalized.jsonld"
description: OK
tags:
- ngsi-ld
tags:
-
description: "NGSI-LD Linked-data Format"
name: ngsi-ld

0 comments on commit 088a9df

Please sign in to comment.