Define routing using json schema