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

https://github.com/firmanjs/gateway

Microservice api gateway using nodejs expressjs
https://github.com/firmanjs/gateway

ecmascript6 expressjs javascript nodejs

Last synced: 22 days ago
JSON representation

Microservice api gateway using nodejs expressjs

Awesome Lists containing this project

README

          

## How To Use

```
- clone servie-barang https://github.com/firmanJS/service-barang.git
- clone service auth https://github.com/firmanJS/Express-Restfull-API-.git
- create database db_api_express postgres
- install redis https://redis.io/download
```

```
# install dependencies
- run npm install

# server runing in port 2000
- run npm run dev

# test running
- run in postman http://localhost:2000/user/ method post username:user password:user

- after login succesfully run in postman localhost:2000/barang with header `x-token-api `
```

## Service Authentication
```
#before performing this action the service must be active
[POST] http://localhost:2000/user/
```

## Service Barang
```
#before performing this action the service must be active
[GET] http://localhost:2000/barang header `x-token-api `
[GET] http://localhost:2000/barang/:id header `x-token-api `
[POST] http://localhost:2000/barang/ header `x-token-api `
[PATCH] http://localhost:2000/barang/:id header `x-token-api `
[DELETE] http://localhost:2000/barang/:id header `x-token-api `
```