Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Calling jForum REST API" Watch "Calling jForum REST API" New topic

Calling jForum REST API

Michael Samir

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

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
Looking at, 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/ returned the list of all users.
Have you checked out Aspose?
subject: Calling jForum REST API
It's not a secret anymore!