使用 Spring Boot 快速打造
HATEOAS 應用
pcbill
jcconf2015
吳欣展
pcbill
pcbill@gmail.com
github.com/pcbill/jcconf2015
Wistron SWPC @ Kaohsiung
Love Java
緣起
How to integrate Python into a Scala stack to build real-time
predictive models (PyCon APAC 2014)
KKTIX
思考
API ?
RESTful API
異質平台整合的解決方案
HATEOAS
Hypermedia as the Engine of Application State
A REST client needs no prior knowledge about how to
interact with any particular application or server beyond a
generic understanding of hypermedia.
-- Wikipedia
Implementation in Java
Spring Data REST
HAL(Hypertext Application Language) + JSON
Spring Boot
http://start.spring.io/
Q&A
Q. How to prevent some HTTP methods from being
exported from my Dao ?
Q. How to prevent some HTTP methods from being
exported from my Dao ?
@RestResource(exported=false)
Q. Security issue ?
Q. Security issue ?
Oauth 2, grant type : password
https://github.com/royclarkson/spring-rest-service-oauth
Bootiful your application, beautiful your life.
Thank you

使用 Spring boot 快速打造 hateoas 應用