API Services Layer for Annotation Application for HANDWRITING RECOGNITION APPLICATION FOR TETANUS TREATMENT
This project module has been developed and belongs to:
This project has been built with:
To run this app you need basic setups:
- GitHub Repository
- Amazon RDS (Amazon Relational Database Services)
- Amazon CodePipeline
- Amazon EBS (Amazon Elastic Beanstalk)
- Amazon S3 (Amazon Simple Storage Service)
To run this project, you will need to add the following environment variables to your ./config/config.json file:
username: postgres
password: [PASSWORD]
database: postgres
host: [AMAZON RDS ENDPOINT]
port: 5432
dialect: postgres
Maybe need to change some constant variables in ./routes/api/ files
const S3_BUCKET = [S3 BUCKET NAME];
To run this project as localhost, set up environment variables and AWS Credentials Key (if needed):
npm start
Access the following endpoint to use the API:
localhost:8080
GET /api/uploads
Parameter | Type | Description |
---|---|---|
page |
string |
Page number for Pagination |
size |
string |
Page size for Pagination |
title |
string |
Page title |
limit |
string |
Pagination limit |
offset |
string |
Pagination offset |
GET /api/uploads/unannotated
Parameter | Type | Description |
---|---|---|
page |
string |
Page number for Pagination |
size |
string |
Page size for Pagination |
title |
string |
Page title |
limit |
string |
Pagination limit |
offset |
string |
Pagination offset |
GET /api/uploads/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of image to fetch |
GET /api/uploads/originals/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of original image to fetch |
POST /api/uploads
Parameter | Type | Description |
---|---|---|
image |
image |
Required. Image to upload to S3 bucket |
GET /api/coordinate
GET /api/coordinate/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of image to fetch |
POST /api/coordinate/
Parameter | Type | Description |
---|---|---|
json file |
json |
Required. json file contains: |
image_name, original_image_name, max_x, max_y, min_x, min_y |
POST /api/uploads
Parameter | Type | Description |
---|---|---|
image |
image |
Required. Image to upload to S3 bucket |
GET /api/originals
GET /api/originals/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of image to fetch |
POST /api/originals/
Parameter | Type | Description |
---|---|---|
image |
image |
Required. Image to upload to S3 bucket |