Saltar al contenido principal

Resource Nouns Before Actions

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

rest-apis5 min read

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.

← Back to library

Contáctanos