1.0.4 • Published 5 years ago
test-back-neku v1.0.4
Engineering Services Presentation Layer REST API.
Getting Started
[Overview ·Technologies · Testing Tools · Installations · API Endpoints · Tests · Author
Overview
- ESPL API project provides the rest apis for ESPL angular project. Using these apis we can perform the different database operations against postgres db.
Technologies Used
Testing Tools
Installations
Getting started
- You need to have Node and NPM installed on your computer.
- Installing Node automatically comes with npm.
Clone
- Clone this project to your local machine
git@github.build.ge.com:ToolsEngineering/espl-api.git
Setup
- Installing the project dependencies
Run the command below
$ npm install
- Start your node server
run the command below
$ npm run dev
- Use
http://localhost:8000
as base url for endpoints
API Endpoints
METHOD | DESCRIPTION | ENDPOINTS |
---|---|---|
POST | Add a account type | /api/v1/account_types |
GET | Get all the account types | /api/v1/account_types |
PUT | Update the details of a account type | /api/v1/account_types/:account_type_id |
GET | Get a particular account type | /api/v1/account_types/:account_type_id |
DELETE | Remove a account type | /api/v1/account_types/:account_type_id |
Tests
- Run test for all endpoints
run the command below
$ npm run test
Author
Engg Shared Services.