what is path param and query param ? path param vs query param

Опубликовано: 10 Июнь 2026
на канале: Hitanshu Soni
1,871
40

What is path param and query param?

path param:- The path parameter defines the resource location

Example:-   / hitanshusoni.js  

Here it will go to the directly on this specific path.

query param:- query parameter defines sort, pagination, or filter operations.

Example:-
https://www.google.com/search?q=what+...

And Here it will contains key value pair 'q' is like our key and what+is+temperature it will go in it's database and search and filter and sort some results related to this.