---
title: "add endpoint"
description: "Add a new API endpoint to an existing backend service with validation and tests."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/add-endpoint
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T10:59:13.160Z
license: CC-BY-4.0
attribution: "add endpoint — Claudary (https://claudary.paisolsolutions.com/skills/add-endpoint)"
---

# add endpoint
Add a new API endpoint to an existing backend service with validation and tests.

## Overview

Add a new API endpoint to an existing backend service with validation and tests.

## Steps


1. Define the endpoint specification:
2. Identify the framework and add the route:
3. Implement the handler:
4. Add input validation:
5. Add middleware if needed:
6. Write tests:
7. Update API documentation.

## Format


```
Endpoint: <METHOD> <path>
Auth: <required|optional|none>
Request: <body schema>
Response: <success schema>
```


## Rules

- Follow REST conventions: POST for create, PUT for replace, PATCH for update.
- Return appropriate HTTP status codes (201 for create, 204 for delete).
- Validate all input before processing.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/add-endpoint) · https://claudary.paisolsolutions.com
