feat: open-trip-api-drink #11
@ -55,7 +55,40 @@ app.get("/welcome", getWelcome)
|
||||
app.get("/otm/city", getCity)
|
||||
|
||||
|
||||
//XXX: faire la doc SWAGGER
|
||||
/**
|
||||
* @openapi
|
||||
* /otm/radius:
|
||||
* get:
|
||||
* summary: return the drinks in a radius
|
||||
* description: return the drinks in a defined radius
|
||||
* parameters:
|
||||
* - name: lon
|
||||
* in: query
|
||||
* required: true
|
||||
* description: longitude of the center of the radius
|
||||
* schema:
|
||||
* type: number
|
||||
* minimum: -180
|
||||
* maximum: 180
|
||||
* - name: lat
|
||||
* in: query
|
||||
* required: true
|
||||
* description: latitude of the center of the radius
|
||||
* schema:
|
||||
* type: number
|
||||
* minimum: -90
|
||||
* maximum: 90
|
||||
* - name: radius
|
||||
* in: query
|
||||
* description: size of the radius
|
||||
* 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/radius", getRadius)
|
||||
|
||||
export default app
|
Loading…
x
Reference in New Issue
Block a user