Structure Flashcards

1
Q

What are the three comments that should ALWAYS be made when creating an API endpoint?

A

1) @route (the route and what request types it accepts)
2) @desc (a description of the endpoint)
3) @access (i.e. “Public”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly