I have a [FunctionName]
with a [HttpTrigger]
in it.
I want my API to have various methods, e.g. getUserById
, getAllUsers
, createUser
etc.
It is unclear if I should be putting them all into a single HttpTrigger
and using a switch
statement to work out which method they called and do the logic, or if there is a better way to do it - perhaps with multiple HttpTrigger
or multiple FunctionNames
classes.
I don't seem to be able to find anything on google for this. Any ideas?