Skip to content
Back to skills

Rest Api Design

ASecurity

Reviews or designs a RESTful API following best practices

  • 10 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 1, 2026
ai-agentsbashapi

Works with

  • api

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill rest-api-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rest Api Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rest Api Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-rest-api-design/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-rest-api-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rest-api-design
description: Reviews or designs a RESTful API following best practices
argument-hint: <resource-name-or-review-existing>
user-invocable: true
allowed-tools: Read Grep Glob
effort: medium
---

## REST API Design

Resource / Scope: **$ARGUMENTS**

### If reviewing existing API:

1. Read route definitions:
```bash
grep -rn "router\.\|app\." src/ --include="*.ts" | grep -E "get|post|put|patch|delete" | head -30
```

Check for:
- Proper HTTP method usage (GET=read, POST=create, PUT/PATCH=update, DELETE=remove)
- Consistent URL naming (`/users` not `/getUsers`)
- Plural nouns for collections (`/users/123`)
- Nested resources for relationships (`/users/123/posts`)
- Query params for filtering/sorting/pagination, not URL segments
- Consistent response shapes
- Missing pagination on list endpoints
- HTTP status codes correct (201 for creation, 204 for delete, etc.)

### If designing new API:

Generate the complete route table:

```
GET    /resources          List (with pagination)
POST   /resources          Create
GET    /resources/:id      Get one
PUT    /resources/:id      Replace
PATCH  /resources/:id      Partial update
DELETE /resources/:id      Delete

GET    /resources/:id/related   Nested resource
```

Include request/response shapes and error codes for each endpoint.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.