REST & MVC

???????????? REST architecture ??? ????????????????????? REST ???????? Resource URL ???????????????? HATEOAS ??????????? principle ???????? REST ????????? ??????????????????? concept Application State ???????????????????????????????? ??????????????? REST architecture ????????? (?????????????????????????? network infrastructure ??? Resource URL ??????????????????? cache)

????????????????????????????????????? REST ?????????? ????????????????? ????????? software architecture ??????????? ??????? REST ?????????????? model ??? Client/Server (= 2 Tiers!)

????????????? Web infrastructure ??????????????? REST

???????????????? physical relationship ??????? logical relationship ??? ????????? software architecture ??????? REST ??????????????? ??????? application ???????????? MVC pattern ????????... ???????? Web application ?????????????????????

Server-side script

????????????? Web app arch ???????????? Server-side script (?????????????) ?????????????????????????? controller ????????? browser ???? (???? AngularJS) ????????

Client-side script

?????????????????????? ??????? arch ????????????????????????? ????????? web app ??????? ??? URL ??????? resource ???????????? REST ??????????

Hypertext As The Engine Of Application State

???????? ????? constraint ???????? sw arch ?????? follow ???? ???????????????????? REST ????? ??????? HATEOAS

HATEOAS model

?????????????????????????????? * Application ?????? drive ???? Hyperlink (= URL + Method) * Intelligent View: ???? generic view ??????????????????????????? application ???

OpenERP Web Application ??????????????????????? implement ???????????? ???? view ??????????????? generate ??? View XML ???????? module ??? ??? Application state ???????? drive ??? hyperlink ??? generated ??? View XML+Model ???????????