Forum Example

service.getCategories()

- returns: arraycollection with CategoryVOs

service.categoryName.getPosts(totalcount)

  • returns: array, first element contains arraycollection with PostVOs (max 50 per page), second element contains integer with total nr of posts in the forum.

service.categoryName.createPost(PostVO)

  • returns: true or false

service.categoryName.getPost(id)

  • returns PostVO

service.categoryName.addComment(postId, CommentVO)

  • returns: true or false

VO

  • CategoryVO = {id:1, title:'Category Title', desc:'Category description', name:'categoryName'}
  • CommentVO = {id:1, user:12, title:'Comment title', body:'Comment body'}
  • PostVO = {id:1, title:'Post title', body:'Post body', comments:newArray(), user:12, date:12-12-07}