An open API service indexing awesome lists of open source software.

https://github.com/kimtth/spring-boot-mybatis-restful

🐛 sample restful service by spring boot & mybatis & maven
https://github.com/kimtth/spring-boot-mybatis-restful

h2-database maven mybatis restful spring spring-boot

Last synced: about 1 year ago
JSON representation

🐛 sample restful service by spring boot & mybatis & maven

Awesome Lists containing this project

README

          

## spring boot restful
simple restful service by spring boot & mybatis & maven

## installation

```$ mvn spring-boot:run```

## development

spring Boot / maven / mybatis / h2 db / tomcat

## restful spec

- Add: @RequestMapping(value = "/user", method = RequestMethod.POST)
- Update: @RequestMapping(value = "/user/{id}", method = RequestMethod.PUT)
- Delete: @RequestMapping(value = "/user/{id}", method = RequestMethod.DELETE)
- List: @RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
- List All: @RequestMapping(value = "/users", method = RequestMethod.GET)

## test: postman

- example: adding data

![demo_restful](https://user-images.githubusercontent.com/13846660/37507603-bae40368-2932-11e8-9be0-0f6cdbe01513.PNG)