akkiePro / SpringMVCWithBoot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpringMVCWithBoot

Spring MVC project with using Spring Boot and JPA where AlienController is @RestController and responsible for following REST APIs

cURLs

  1. Get all aliens
    • curl --location 'localhost:8080/SpringMVCWithBoot/aliens'
  2. Get alien by id
    • curl --location 'localhost:8080/SpringMVCWithBoot/alien/102'
  3. Add alien
    • curl --location 'localhost:8080/SpringMVCWithBoot/alien' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'aid=115' \ --data-urlencode 'aname=ABC'

About


Languages

Language:Java 100.0%