1.0. Overview
1.1.0 Pipeline Diagram
2.0. Purpose Of Gateway Service
3.0. The Endpoints Description
3.1. Create Connection Gateway API
3.2. Calling A Function/Procedure Gateway Endpoint
4.0 Installation
4.1 Git Clone Repository
4.2 Start Server
5.0 Documentations
6.0 Collaborators
The API gateway service provides an HTTP/TCP endpoint access to an underline Postgres server. Furthermore, it helps Postgres users to avoid the use of SQL query languages directly. The favoured standard ways to access databases tables, views, and system objects in Postgres. Is via store procedures/functions.

This service aims to provide a single endpoint API using JSON format messaging protocol to access the Postgres procedures/functions.
Using SQL procedures to write records to a database can offer several advantages over writing SQL statements directly in your code:
-
Modularity: By using SQL procedures, you can separate the database logic from the application logic, making it easier to manage and maintain your code.
-
Security: SQL procedures can help to improve the security of your application by providing an additional layer of protection against SQL injection attacks.
-
Performance: SQL procedures can be compiled and optimized by the database server, which can result in improved performance compared to running the same SQL statements directly in your code.
-
Reusability: SQL procedures can be reused across multiple applications and projects, making it easier to standardize your database access code.
Overall, using SQL procedures can help to improve the reliability, security, and performance of your application, while also making it easier to manage and maintain your code.
The following environment variable is need to run the application
export DATABASE_NAME =<required>
export DATABASE_USERNAME =<required>
export DATABASE_PASSWORD =<required>
export DB_PORT=<required>
export DB_HOST=<required>The following are the TCP/HTTP endpoint description of the service.
Connect to the postgres server using the following api endpoints.
<api-gateway-service>/api/connect
The endpoint is use for calling postgress stored procedure and function.