Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 183 additions & 0 deletions src/poi/swagger/swagger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "Trip Insights Points Of Interest (POI) API",
"description": "API for the trips in the Trip Insights app. https://github.com/Azure-Samples/openhack-containers"
},
"paths": {
"/api/poi": {
"get": {
"tags": [
"POI"
],
"operationId": "ApiPoiGet",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/POI"
}
}
}
},
"post": {
"tags": [
"POI"
],
"operationId": "ApiPoiPost",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [],
"parameters": [
{
"name": "poi",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/POI"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/poi/healthcheck": {
"get": {
"tags": [
"POI"
],
"operationId": "ApiPoiHealthcheckGet",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Healthcheck"
}
}
}
}
},
"/api/poi/{ID}": {
"get": {
"tags": [
"POI"
],
"operationId": "ApiPoiByIDGet",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "ID",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/POI"
}
}
}
}
},
"/api/poi/trip/{tripID}": {
"get": {
"tags": [
"POI"
],
"operationId": "ApiPoiTripByTripIDGet",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "tripID",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/POI"
}
}
}
}
}
},
"definitions": {
"POI": {
"type": "object",
"properties": {
"tripId": {
"type": "string"
},
"latitude": {
"format": "double",
"type": "number"
},
"longitude": {
"format": "double",
"type": "number"
},
"poiType": {
"format": "int32",
"enum": [
1,
2
],
"type": "integer"
},
"timestamp": {
"format": "date-time",
"type": "string"
},
"deleted": {
"type": "boolean"
},
"id": {
"type": "string"
}
}
},
"Healthcheck": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"status": {
"type": "string"
}
}
}
}
}
Loading