MCPcopy Index your code
hub / github.com/alexrios/endpoints

github.com/alexrios/endpoints @v0.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.6.0 ↗ · + Follow
14 symbols 53 edges 6 files 0 documented · 0% updated 2mo agov0.6.0 · 2026-04-11★ 33

Browse by type

Functions 12 Types & classes 2
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The tiniest HTTP endpoints simulator

Go Report Card Download shield

Endpoints

Usage

Download your binary here

On terminal ```shell script $ endpoints


Or, if you are into containers

On terminal
```shell script
$ docker run ghcr.io/alexrios/endpoints:latest

You should see

INFO[0000] [GET] / -> 200 with body -> customBody.json 
INFO[0000] Listen at :8080                              

Defaults

  • address - ":8080"
  • method - "GET"
  • latency - 0ms
  • status code - 200

Configuration file

endpoints.json

All features example:

{
  "address": ":8080",
  "responses": [
    {
      "path": "/",
      "status": 201,
      "latency": "400ms",
      "method": "POST",
      "json_body": "customBody.json"
    }
  ]
}

Note: json_body is the file location of the body file.

Body interpolation with path variables

Now you want to interpolate an identifier on the response body. How to do it?

Let's add another response on responses.

{
  "address": ":8080",
  "responses": [
    {
      "path": "/",
      "status": 200,
      "latency": "400ms",
      "method": "POST",
      "json_body": "customBody.json"
    },
    {
      "path": "/{id}/sales",
      "status": 201,
      "latency": "400ms",
      "method": "GET",
      "json_body": "interpolated.json"
    }
  ]
}

And now, we'll use templating notation to use this response body as a template.

interpolated.json
{
  "id": {{ .id}}
}

Status

This project is under development.

Core symbols most depended-on inside this repo

Shape

Function 11
Struct 2
Method 1

Languages

Go100%

Modules by API surface

files.go6 symbols
files_test.go3 symbols
main.go2 symbols
handlers.go2 symbols
handlers_test.go1 symbols

For agents

$ claude mcp add endpoints \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page