1.0.9 • Published 7 years ago

camaleon-api v1.0.9

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

camaleon-api

npm

camaleon-api is a Restify abstraction written in TypeScript.

Installing

You can install camaleon-api with npm:

npm install camaleon-api

Using

Camaleon API gives you productivity building RESTFul APIs.

ApiStartup

import { ApiStartup } from "camaleon-api";
import { HomeController } from "./controllers/home.controller";

const startup = new ApiStartup({
  port: 3000,
  controllers: [new HomeController()],
  beforeConfigure: (server) => {

  },
  afterConfigure: (server) => {

  }
});

startup.Run();

IController

import * as restify from "restify";
import { IController } from "camaleon-api";

export class HomeController implements IController {
    register(server: restify.Server): void {
        server.get("/", async (req, res, next) => {
            res.send(200, {});
        });
    }
}
1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago