# eaxsim HTTP API routes

> Every HTTP route of the eaxsim plant-simulation host: methods and path.

Product: Platform · Type: Reference · Editions: Cloud
Source: https://eaxware.com/docs/platform/reference/generated/http-api-eaxsim/
Verified against commit d9508db.

<!-- GENERATED by tools/docgen (node tools/docgen/docgen.mjs). Do not edit by hand: change the source and regenerate. -->

The routes of the eaxsim host API (eaxsim -http). The host API has no authentication of its own: bind it to localhost; tenants reach it through the eaxsim-cloud control plane.

## How to read this page

- **Methods**: the methods the handler implements. "any" means the handler does not look at the method; "other: default" means every other method reaches the handler's default branch.
- **Role**: who may call the route. "GET, HEAD" and "other methods" give separate rules for reads and for every other method; a list of methods gives the rule for those methods.
- Role levels follow the role hierarchy: operator (Shift_Operator, 40), supervisor (Process_Supervisor, 60), engineer (Lead_Engineer, 80), administrator (100). A higher level includes the lower ones.
- **Source**: where the route is registered. The method and role annotations sit on the line above each registration (`// route:`).

## Pages and static files

| Methods | Path | Role | Source |
|---|---|---|---|
| GET | `/` | public (no sign-in) | `eaxPLC/pkg/sim/host/overview.go` |

## `/api/faults`

| Methods | Path | Role | Source |
|---|---|---|---|
| POST | `/api/faults` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |

## `/api/overview`

| Methods | Path | Role | Source |
|---|---|---|---|
| GET | `/api/overview` | public (no sign-in) | `eaxPLC/pkg/sim/host/overview.go` |

## `/api/plcs`

| Methods | Path | Role | Source |
|---|---|---|---|
| GET | `/api/plcs` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |
| GET | `/api/plcs/{id}` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |
| GET | `/api/plcs/{id}/faults` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |
| POST | `/api/plcs/{id}/faults` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |
| DELETE | `/api/plcs/{id}/faults` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |
| DELETE | `/api/plcs/{id}/faults/{fid}` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |
| GET | `/api/plcs/{id}/values` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |
| POST | `/api/plcs/{id}/{action}` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |

## `/api/sim`

| Methods | Path | Role | Source |
|---|---|---|---|
| GET | `/api/sim` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |
| POST | `/api/sim/pause` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |
| POST | `/api/sim/resume` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |
| POST | `/api/sim/snapshot` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |
| PUT | `/api/sim/speed` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |

## `/api/states`

| Methods | Path | Role | Source |
|---|---|---|---|
| GET | `/api/states` | public (no sign-in) | `eaxPLC/pkg/sim/host/overview.go` |

## `/api/tree`

| Methods | Path | Role | Source |
|---|---|---|---|
| GET | `/api/tree` | public (no sign-in) | `eaxPLC/pkg/sim/host/http.go` |

Routes: 18.
