This is more like a design/performance question. Suppose one has a REST API with several (hundereds?) of paths (don't make sense here, but for arguments sake):
Do you guys make one handler /v1/pets/ and then a 'select case' of the sub path, or a handler for each sub path?
Would there be a performance difference?
The second option (handler for each sub path) looks like overkill to me, especially if hundereds of them are involved.
B4X:
/v1/pets/add
/v1/pets/get
/v1/pets/getoftype
/v1/pets/getwithforlegs
...
Do you guys make one handler /v1/pets/ and then a 'select case' of the sub path, or a handler for each sub path?
Would there be a performance difference?
The second option (handler for each sub path) looks like overkill to me, especially if hundereds of them are involved.