jQuery in Action, 2nd edition*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41034
    
  43
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
 
jQuery in Action, 2nd edition
 
subject: Calling jForum REST API
 
Similar Threads
how to integrate jforum with a project in eclipse
Complex integration question - multiple jforums -> caching problem?
LDAP authentication
banner admin pages implemented...
API for external access