Hello. Allow me to start by commending you guys for putting together nameko-examples repo
and mention how great of an asset it has been to many, myself included, in getting started on a real world solution using Nameko.
I added this bit of code to gateway/services.py
hoping to have an endpoint that lists all products so that subsequently, I’d also add delete and edit endpoints for the same.
@http(
"GET", "/products"
)
def get_products(self, request):
"""Gets all products
"""
product = self.products_rpc.list()
return Response(
ProductSchema(many=True).dumps(product).data,
mimetype='application/json'
)
I’m a newbie to docker and using docker-compose to build and run multiple containers for each service so I stopped the running containers, force created a new build but my new code was not run as it still showed that GET method was not allowed for '/products'
.
Any help on how I may go about this will be highly appreciated.