DEV Community

Discussion on: DIY Function APIs

Collapse
 
lucasfrutig0 profile image
lucasfrutig0

Why use post and not get in some methods like getUserList ?

Collapse
 
matthewpalmer9 profile image
Matthew Palmer

In that specific case, I have dynamic URLs setup in the project I'm developing based on users. So, you would travel to domain.com/profile/username and the website would take username and query the database for that user's list. 🙂 If it was just to get the signed-in user's list, a GET would work just fine. But I have to pass information in that exists outside of any session before I get results.

Collapse
 
lucasfrutig0 profile image
lucasfrutig0

understand