Publish REST API

Hi Team ,  I am working on a REST API where I am exposing all student details (First Name, Last Name, Country , Address) . Now i have two questions: My client want to filter the response based on Last Name , First Name . How can i build the same in my API? I have tried creating a Path parameter which is working fine in swagger but not sure how to call it in Postman .  What Method should i use ? GET or POST ? to expose my data .    
1 answers

You typically filter using query parameters. So you it would look something like /students?$firstName=John&$lastName=Doe

For retrieving data you use GET.