1.0.1 • Published 4 years ago

@les-roberts/api_gateway v1.0.1

Weekly downloads
3
License
ISC
Repository
-
Last release
4 years ago

Api Gateway

Get a full fake REST API with zero coding in less than 30 seconds (seriously)

Created with <3 for front-end developers who need a quick back-end for prototyping and mocking.

Table of contents

Getting started

Install Api Gateway

$ npm install -g @roberts/api_gateway

Server Configuration Format

ServerConfig {
  port: string;
}

Router Collection Format

RouterCollection {
  endpoint: string;
  base_url: string[];
  strategy: string;
}

Warning!!! Use a table of RouterCollection

[
  {
    endpoint: string;
    base_url: string[];
    strategy: string;
  },
  ...
],

Element to import

class LesRobertsServerApiGateway
interface ServerConfig
interface RouterCollection

License

Licence MIT