diff --git a/Express/barAndCafe/src/app.ts b/Express/barAndCafe/src/app.ts index 4b5c8b4..7d707fe 100644 --- a/Express/barAndCafe/src/app.ts +++ b/Express/barAndCafe/src/app.ts @@ -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 \ No newline at end of file