When design REST API, you can have
GET /userinfo?id=124,
you can also make the parameter part of the path:
GET /userinfo/124.
I understand on the