Xoriant interview question

Difference between query param and path param in Rest service?