REST mindset

我真係見過,好多人做REST API,做到…. 講REST API其實一定要知resource既概念。 我以前真係見過,有developer係用個Java interface class(util service果種)黎做REST resource。(我study過擺明唔係intended design) 點解? 因為好多developer做野唔會深究去諗點解,只要駁得通d library,call到,做到requirement,咁就OK。 佢地so called係做REST,但其實個mindset只係做RPC而已。 但其實做REST API最重要係個mindset。 點解要做REST API? 係因為對consumer來說簡單易用,低使用門檻,低學習門檻。 所以REST API最核心精神就是consumer oriented。 consumer oriented衍生出來的,就是借用HTTP protocol method & status去做Resource及CRUD。 其實真係可以問問果堆developer,佢地有冇諗過咩叫REST?點解要做REST?點樣先係consumer […]

rest-in-contract – nodejs module for REST API Contract server

rest-in-contract Project Page Module Homepage: http://blog.airic-yu.com/2064/rest-in-contract-nodejs-module-for-rest-api-contract-server Githup: https://github.com/airicyu/rest-in-contract NPM: https://www.npmjs.com/package/rest-in-contract Project rest-in-contract’s Homepage: http://blog.airic-yu.com/2062/project-rest-in-contract Project Status Currently, the project is in beta version (v0.x.x). The basic Contract Server module is […]

Project rest-in-contract

Project rest-in-contract Project Page Project rest-in-contract’s Homepage: http://blog.airic-yu.com/2062/project-rest-in-contract Github: https://github.com/airicyu/rest-in-contract-project Related Projects rest-in-contract (Contract Server nodejs module) Module Homepage: http://blog.airic-yu.com/2064/rest-in-contract-nodejs-module-for-rest-api-contract-server Github: https://github.com/airicyu/rest-in-contract NPM: https://www.npmjs.com/package/rest-in-contract   What is rest-in-contract Consumer-driven contracts […]