Skip to content

Java API RESTfull for Log managing. It allows you to upload log batch files, list and search for Log entries, and edit log entries.

Notifications You must be signed in to change notification settings

renatoaloi/java-log-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log Manager

Java API RESTfull for Log managing. It allows you to upload log batch files, list and search for Log entries, and edit log entries.

TODO List

  • Decide Framework: Spring
  • Decide Database: Postegres
  • Decide Front: Angular
  • Bring VSCode environment up
  • Bring Database up with docker
  • API RESTFull Spring Boot
  • Handle Upload File
  • Import uploaded data
  • Frontend Authentication (Login)
  • Frontend CRUD for file upload
  • Add service logs for debugging propouses
  • Solve CORS problems (at front only)
  • Frontend CRUD for log management
  • Backend validations
  • Frontend validations
  • Unit tests
  • Test coverage
  • Terraform for CD/CI pipeline
  • Add list pagination
  • Add backend token authentication

Environment

Visual Studio Code with Maven as packager manager

Reference: https://www.youtube.com/watch?v=dkmlOi_MNb4

Usage

List

Method: GET
http://localhost:8080/api/list

Get

Method: GET
http://localhost:8080/api/get/1

Add

Method: POST
http://localhost:8080/api/add
{
    "entryDate": "2020-01-01",
    "ipAddress": "192.168.234.82",
    "httpMethod": "GET / HTTP/1.1",
    "returnCode": 200,
    "browserDetail": "swcd (unknown version) CFNetwork/808.2.16 Darwin/15.6.0"
}

Edit

Method: PUT
http://localhost:8080/api/edit
{
    "id":1,
    "entryDate": "2020-01-01",
    "ipAddress": "192.168.234.82",
    "httpMethod": "GET / HTTP/1.1",
    "returnCode": 200,
    "browserDetail": "swcd (unknown version) CFNetwork/808.2.16 Darwin/15.6.0"
}

Database

$ docker-machine start
$ docker run --rm --name go-postgres -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres:latest
$ docker-machine env

About

Java API RESTfull for Log managing. It allows you to upload log batch files, list and search for Log entries, and edit log entries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages