Closed ben7th closed 9 years ago
get '/f/:id/image_comments' => 'white_board#get_image_comments'
response
[
{
:id => id.to_s,
:file_entity_id => file_entity.id.to_s,
:user => {
:id
:name
:avatar_url
},
:x => x,
:y => y,
:text => text
}
]
post '/f/:id/image_comments' => 'white_board#create_image_comment'
params
x
y
text
response
{
:id => id.to_s,
:file_entity_id => file_entity.id.to_s,
:user => {
:id
:name
:avatar_url
},
:x => x,
:y => y,
:text => text
}
delete '/f/:id/image_comments/:image_comment_id' => 'white_board#destroy_image_comment'
response
{:status => 200}
已经集成到 0.3 版
模型结构:
需求 API
API 实现写在 white_board_controller 里