MyeongKim / QuesCheetah

Web SDK for the survey / poll
MIT License
4 stars 3 forks source link

Update REST API URL #10

Closed MyeongKim closed 8 years ago

MyeongKim commented 8 years ago

reference : https://spoqa.github.io/2012/02/27/rest-introduction.html

MyeongKim commented 8 years ago

add /v1/ to the first part of all REST API address.

MyeongKim commented 8 years ago
MyeongKim commented 8 years ago

8ebdebc0d1b3d733634821166c629ff2daa3b3f5

  1. change to Class Based View
  2. url address redesign
MyeongKim commented 8 years ago

use error response instead of 200 response

example

HTTP Status Code : 401 {“status”:”401”,”message”:”Authenticate”,”code”:200003,”more info”:”http://www.twillo.com/docs/errors/20003"}

MyeongKim commented 8 years ago

pagination

example

Facebook API : /record?offset=100&limit=25 ( 100~125)

MyeongKim commented 8 years ago

Partial Response

example

Facebook : /terry/friends?fields=id,name

MyeongKim commented 8 years ago

4ce4afcdd7f079c3b150fecdd7566131607e73f0

status code applied

MyeongKim commented 8 years ago

fc3664a2a2a10b74cf13722f172f99ba49cbe576

API url modified