Skip to content

praveenkumarp893/autometrics-java-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Spring Boot Books API

Basic autometrics integration in spring boot application (https://github.com/LeudiX/Simple-Books-API-with-Spring-Boot)

Description

A simple API for books management with persistence, basic CRUD operations and security, simple centralized error handling mechanism.

Implementing autometrics from https://github.com/jamsiedaly/autometricsj

Execution Enviroment

  1. Open VSCode
  2. Install Java, Maven and Spring packs extensions
  3. Reload VScode and configure it for Maven
  4. Run (mvn clean install) for dependencies management
  5. If no problems, type (mvn sprin-gboot: run) cmd to run the app
  6. Open the browser on localhost:8081
  7. Enjoy watching my wonderful stuff!!!

Actions allowed

  1. List all books

curl --location 'localhost:8081/api/v1/books'

  1. Create a book curl --location 'localhost:8081/api/v1/books'
    --header 'Content-Type: application/json'
    --data '{ "title":"Book3", "author": "Author3" }'

  2. Delete a book

curl --location --request DELETE 'localhost:8081/api/v1/books/{bookID}'

  1. Find a book by title

curl --location 'localhost:8081/api/v1/books/title/{BookTitle}'

Endpoints

GET localhost:8081/api/v1/books

POST localhost:8081/api/v1/books

About

Autometrics Implemented for springboot application

Resources

Stars

Watchers

Forks

Releases

No releases published