Skip to main content
REST-APIS5 MIN READ

Resource Nouns Before Actions

Separate resource-oriented endpoint names from RPC-style action endpoints.

Place each endpoint in the bucket that best describes its shape. Resource-oriented RPC/action smell Action that should become a resource GET /accounts/42/invoices POST /cancelOrder POST /orders/42/cancellations GET /getActiveUsers POST /reports/monthly/run POST /report-runs PATCH /users/99 POST /makeCardPrimary

Read the full lesson

Sign up free — one personalized lesson every day, matched to your role and goals.

Already have an account? Sign in

← Back to library
Contact us