1. Think in resources
5 min
Start with nouns
Before you choose URLs or status codes, decide what things your API manages. These things are resources.
A resource is usually a noun your teammate can point to: student, event, team, payment, submission. It is not an action like register, pay, approve, or search.
One idea
Design the API around resources, not screens or buttons. Actions usually become changes to a resource, or creation of a related resource.
Hackathon example
Imagine you are building a college hackathon API. A beginner might list features like this: create event, register team, approve project, view submissions.
Now rewrite them as resources. This gives you a cleaner base for routes later.
Feature idea -> Resource
create event -> events
register team -> registrations
approve project -> projects or reviews
view submissions -> submissions
add team member -> team_members
track UPI payment -> paymentsFind resources
Do each one yourself, then tap it to tick it off. The ticks are only a checklist for you: they are not marked or scored.
0 of 5 done