Hi
I have a few doubts regarding the YAML configuration for a service.
Let me explain the scenario. Suppose that i have a flask application having two routes:
/user - For user related information
/products - For Products related information
The configuration that i have used for this is as defined below.
services:
-
name: flaskusers
url: http://IP:PORT/users
tags:- flaskAPI
routes: - name: Flask-Users
paths:- /users
- flaskAPI
-
name: flaskproducts
url: http://IP:PORT/products
tags:- flaskAPI
routes: - name: Flask-Products
paths:- /products
- flaskAPI
Can the above scenario be implemented by defining a single service only.
Please suggest if there are some better ways to implement this scenario. Any best practices please.