In this lesson, learn how to make Nuxt API endpoints that only respond to certain request methods such as post
, get
, put
, and delete
. This is accomplished by appending the desired request method at the end of the file name (before the file extension).
The REST Client VS code extension is a handy way to quickly test out REST API endpoints.
Links