It's not a secret anymore!*
The moose likes JForum and the fly likes Calling jForum REST API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Calling jForum REST API" Watch "Calling jForum REST API" New topic
Author

Calling jForum REST API

Michael Samir
Greenhorn

Joined: Mar 06, 2014
Posts: 2
I knew that jForum provides REST API's, but I want to know how to call them using JAVA, since I found no documentations about that any where

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42620
    
  65
Looking at urlPattern.properties, the only calls seem to be 1) creating a user, 2) listing all users, 3) creating a post. That file also tells you which parameters are required.

"api_key" is apparently something you need to put into the "jforum_api" table. In my local installation I just performed

insert into jforum_api values (nextval('jforum_api_seq'::regclass), 'foobar', '2015-01-01')

and after that the URL http://localhost:8080/jforum2/userApi/list/foobar.page returned the list of all users.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling jForum REST API