Project

General

Profile

Actions

Defect #8910

closed

API does not work on my client.

Added by Jorge Luís almost 14 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
2011-07-26
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

Why the API does not work on my address:
http://lumenit.teamproject.com.br/projects.xml
The screen goes blank with no content in any response source code.

I would like to work this way:
http://www.redmine.org/projects.xml

Need to perform any procedure or during the installation files?
I'm totally lost.

Actions #1

Updated by Alex Last almost 14 years ago

have you enabled REST API?

How to enable REST API in Redmine: http://www.taskadapter.com/help/redmine/redmine_config.html#rest_api

Actions #2

Updated by Jean-Philippe Lang almost 14 years ago

  • Status changed from New to Closed
  • Resolution set to Cant reproduce
Actions #3

Updated by Mikal Villa over 13 years ago

  • Status changed from Closed to Reopened

I also experienced a problem with no result from the REST API.
Yes, REST api is enabled. I've double checked.
But still, it don't work.

In logfile I got this:

Processing ProjectsController#index to xml (for <client ip> at 2011-10-05 16:26:40) [GET]
Parameters: {"format"=>"xml", "action"=>"index", "page"=>"1", "controller"=>"projects", "per_page"=>"25"}
Filter chain halted as [:check_if_login_required] rendered_or_redirected.
Completed in 2ms (View: 0, DB: 0) | 401 Unauthorized [http://&lt;host&gt;/redmine/projects.xml?page=1&per_page=25]

And when I tires it in a webbrowser where I'm not signed in, I don't get any http login request whatsoever.

Actions #4

Updated by Etienne Massip over 13 years ago

  • Category changed from Forums to REST API
Actions #5

Updated by Jean-Baptiste Barth about 12 years ago

  • Status changed from Reopened to Closed
  • Priority changed from High to Normal

Closing this one, you probably got the authentication wrong. See Rest_api

Actions

Also available in: Atom PDF