-
Notifications
You must be signed in to change notification settings - Fork 39
Controller Rest
Anton edited this page Oct 8, 2013
·
9 revisions
// >> 401 Unauthorized - if authorization is required
// >> 403 Forbidden - if user don't have permissions
// >> 501 Not Implemented - if something not exists
// GET /module/rest/ -> 200 // return collection or
// -> 206 // return part of collection
// GET /module/rest/id -> 200 // return one item or
// -> 404 // not found
// POST /module/rest/ -> 201 // item created or
// -> 400 // bad request, validation error
// POST /module/rest/id -> 501 // error, not used in REST
// PATCH /module/rest/
// PUT /module/rest/ -> 200 // all items was updated or
// -> 207 // multi-status ?
// PATCH /module/rest/id
// PUT /module/rest/id -> 200 // item was updated or
// -> 304 // item not modified or
// -> 400 // bad request, validation error or
// -> 404 // not found
// DELETE /module/rest/ -> 204 // all items was deleted or
// -> 207 // multi-status ?
// DELETE /module/rest/id -> 204 // item was deleted
// -> 404 // not found
Acl
Application
Auth
Cache
Common
— Exception
— Collection
— Container
— Helper
— Options
— Singleton
Config
Controller
— Data
— Mapper
—— Crud
—— Rest
— Reflection
Crud
— Crud Table
Db
— Row
— Table
— Relations
— Query
Debug
EventManager
Grid
Http
Layout
Logger
Mailer
Messages
Nil
Proxy
Registry
Request
Response
Router
Session
Translator
Validator
View