Skill Wiki v0.1.0
rule @community/rule-resource-not-action

Resource Not Action

Every URL path is a noun phrase identifying a resource or collection. State changes occur via HTTP methods: GET (read), POST (create), PUT (full replace), PATCH (partial update), DELETE (remove).…

Skill
@community
Domain
api-design
Version
1.0.0
Quality
4.0
Edges
6 out · 14 in
Tokens
224/501/1112
$ prime install @community/rule-resource-not-action

Projection

Always in _index.xml · the agent never has to ask for this.

ResourceNotAction [rule] v1.0.0

REST URLs MUST identify resources, not actions. Use nouns for paths and HTTP verbs for operations. URLs containing verbs (/createUser, /getOrders, /deleteCart) violate REST and produce inconsistent, ambiguous APIs.

Every URL path is a noun phrase identifying a resource or collection. State changes occur via HTTP methods: GET (read), POST (create), PUT (full replace), PATCH (partial update), DELETE (remove). For non-CRUD operations that don't fit standard verbs (e.g. 'send email', 'cancel subscription'), introduce a resource sub-collection (POST /subscriptions/{id}/cancellations) or use action-as-resource framing (POST /transcoding-jobs). Forbidden: verbs in path segments (/getOrder, /listUsers, /deleteFile). Forbidden: passing the operation in a query parameter (?action=delete). Forbidden: GET with side effects.

Source

prime-system/examples/frontend-design/primes/compiled/@community/rule-resource-not-action/atom.yaml

Compiled at 2026-05-07