Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andyrichardson/simple-rest

Example of simple rest endpoint with codegen doing the bulk of the work
https://github.com/andyrichardson/simple-rest

Last synced: 16 days ago
JSON representation

Example of simple rest endpoint with codegen doing the bulk of the work

Awesome Lists containing this project

README

        

# About

A basic example of a REST endpoint with:

- Static type safety
- Automatic schema construction
- Automatic interactive UI for development
- Automatic input arg validation
- Baked in auth

## Usage

Install dependencies

```
npm ci
```

Start development server

```
yarn start
```

Navigate to OpenAPI spec to authenticate, make requests, etc

[`http://localhost:3000/`](http://localhost:3000/).