feat: open-trip-api-drink #11

Merged
Clement merged 34 commits from feat/open-trip-api into master 2024-05-19 09:38:39 +00:00
Showing only changes of commit ae9e1eae47 - Show all commits

View File

@ -1,4 +1,4 @@
import { getCity, getRadius } from "./openTripMaps"
import { getCity, getRadius, getPoiId } from "./openTripMaps"
import express from "express"
/**
* Initialize Express application instance.
@ -91,4 +91,28 @@ app.get("/otm/city", getCity)
*/
app.get("/otm/radius", getRadius)
/**
* @openapi
* /otm/poidetaill:
* get:
* summary: detail of a POI
* description: detail of a POI link name, kind, rate,...
* parameters:
* - name: id
* in: query
* required: true
* description: Unique identifier of the object in OpenTripMap
* schema:
* type: string
* responses:
* 200:
* description: Return a list of bars and coffee in city in geoJSON format
* 400:
* description: Missing Argument Error
* 401:
* description: Missing OTM tocken
*/
app.get("/otm/poidetaill", getPoiId)
export default app