Tooo / Online-Superhero-Tracker

Online Superhero Tracker: Spring Boot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Online Superhero Tracker

A simple Superhero tracker using Spring Boot REST API. Add a superhero and track their civilian save count.

Installation

  1. Download, install and run IntelliJ Community Edition
  2. Click "Get from VCS" or File->New->Project From Version Control
  3. Insert the following URL:
https://github.com/Tooo/Online-Superhero-Tracker.git
  1. Run Application

Commands

Use Postman or Window's curl command:

curl -i -H "Content-Type: application/json" -X GET localhost:8080/hello
HTTP method URL Description
GET /hello Greeting message
GET /listAll Return all superheroes as JSON array objects
POST /add Add new superhero JSON object
POST /remove/id Remove superhero with indicated id
POST /update/id Update superhero with id using JSON object
GET /listTop3 Return top 3 superheroes in JSON array object

Superhero JSON object

{
  "name": "Cookie Monster",
  "heightInCm": 97.0,
  "civilianSaveCount": 0,
  "superPower": "Eating Cookies"
}

About

Online Superhero Tracker: Spring Boot


Languages

Language:Java 100.0%