Skip to content

neblessed/Hitman_RESTful_Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hitman RESTful Service

CRUD Methods

Hitman ("/api/hitman"):

  • GET (endpoint: "/getHitmanById/{id}")
  • GET (endpoint: "/getAllHitmans")
  • DELETE (endpoint: "/deleteHitman/{id}")
  • PUT (endpoint: "/editHitman")
  • POST (endpoin: "/createHitman"):

Hitman Body Example:

    {
        "id": 1,
        "hitmanName": "John Wick",
        "hitmanContry": "New York",
        "hitmanAge": 33,
        "hitmanWeapon": "M4A1",
        "hitmanExcommunicado": 1
    }

Weapon ("/api/weapon"):

  • GET (endpoint: "/getWeaponById/{id}")
  • GET (endpoint: "/getAllWeapons")
  • DELETE (endpoint: "/deleteWeaponById")
  • PUT (endpoint: "/editWeapon")
  • POST (endpoint: "/createWeapon"):

Weapon Body Example:

    {
        "id": 1,
        "weaponName": "M4A1",
        "weaponQuantity": 3,
        "hitmanLinkId": 2
    }

Database Diagram:

image

About

RESTful Service for API tests ✔

Topics

Resources

Stars

Watchers

Forks

Languages