Project

General

Profile

Actions

Feature #1214

closed

REST API for Issues

Added by Eric Davis over 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
REST API
Target version:
Start date:
2008-05-08
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed

Description

Part of the main REST API issue (#296), this should expose some APIs to work with issues.

  • Get a list of issues
  • Create a new issue
  • Update an existing issue
  • Delete an issue

Related issues

Related to Redmine - Feature #296: REST APIClosedJean-Philippe Lang

Actions
Related to Redmine - Feature #5305: "related issues" info is required in XML dataClosed2010-04-13

Actions
Blocked by Redmine - Feature #3920: REST API for authenticationClosedEric Davis2009-09-25

Actions
Actions #1

Updated by Doug Raney over 16 years ago

Im for this approach as well. See #725. I would like to see this API implemented as SOAP 1.2 compliant.

Actions #2

Updated by Nikolay Kotlyarov about 15 years ago

+1.
Need this to replace "csv import plugin"(and then import thousands of tasks from excel)

Actions #3

Updated by Michael Ivanov about 15 years ago

Incidentally, the author of "csv import plugin" recognizes that the plugin does not work: (.
Are there any other methods of import issues in large volumes?

P.S. I speak English not just bad, but badly, I know:)

Actions #4

Updated by Jean-Philippe Lang almost 15 years ago

  • Category changed from Issues to REST API
  • Status changed from New to Resolved
  • Target version set to 0.9.1
  • Resolution set to Fixed

Feature added in r3310.
Documentation started at Rest_api.

Actions #5

Updated by Nikolay Kotlyarov almost 15 years ago

You've done it maaan:))) Awesome!!! Big thanks, Jean!

Actions #6

Updated by Eric Davis almost 15 years ago

Shouldn't this be targeted for 1.0 and not 0.9.1? I thought the 0.9 series was in RC and new features are for 1.0 only?

Actions #7

Updated by Jean-Philippe Lang almost 15 years ago

You're right, 0.9 is in RC.
But it's not a big change and it would be a shame to have a API style authentication without any API behind in 0.9. This API should be considered as a draft in 0.9 so we can get some feedback and improve it for 1.0.

Actions #8

Updated by Eric Davis almost 15 years ago

Jean-Philippe Lang wrote:

But it's not a big change and it would be a shame to have a API style authentication without any API behind in 0.9. This API should be considered as a draft in 0.9 so we can get some feedback and improve it for 1.0.

I'd disagree, this is a moderate sized change. It adds an entire API, new views, and some more routes. (From what I'm seeing, it's also missing the JSON format)

Also 0.9 already included part of the XML/JSON API for News to test the API authentications (http://www.redmine.org/issues/3920#note-8). My goal was to get API authentication tested and into 0.9 so plugin developers can take advantage of it to build APIs for their plugins while the core had time to refine the main REST API.

Actions #9

Updated by Jean-Philippe Lang almost 15 years ago

  • Target version changed from 0.9.1 to 1.0.0 (RC)
Actions #10

Updated by Henrik Mohr almost 15 years ago

I just updated our installation today from master (github) -> version 0.9.1.

  • /projects.xml returns usable XML, but
  • /issues.xml returns html

The begin of the HTML is:

    <h2>Issues</h2>

    <form action="/queries/new" id="query_form" method="post"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="TgnsQpEayRkvUZGDHNfYmQSvo/Fs/yQPPnK/Pz6IM8Y=" /></div>

        <div id="query_form_content">
    <fieldset id="filters"><legend>Filters</legend>
    <script type="text/javascript">

Any ideas on what is wrong?

Actions #11

Updated by Lane Roathe almost 15 years ago

I am looking forward to seeing this happen. For areas I am interested in using it, I would want JSON data (for example, any mobile device at this time handles XML very slowly compared to JSON), so I am glad to see it's being provided so far and I hope continues to be going forward. :)

Actions #12

Updated by Hannes Horneber almost 15 years ago

I’ve got the same issue like Henrik. Projects.xml works just fine, but issues.xml returns html.
I just updated from github to Version 0.9.2dev.
Any Ideas?

Actions #13

Updated by Felix Schäfer almost 15 years ago

Hannes and Henrik, the issues.xml issue is a new bug regarding functionality that has been introduced and is believed to be working, please file a new bug for that problem.

Actions #14

Updated by Hannes Horneber almost 15 years ago

Hi there... I just submitted a bug report Issues #4795.
Hopefully this is going to be fixed soon ;-)

Actions #15

Updated by Hannes Horneber almost 15 years ago

Just to give some feedback. The problem Henrik and I mentioned was solved for me, if I removed the redmine_subtasks_plugin.
Is had nothing to do with redmine itself.

Actions #16

Updated by Eric Davis almost 15 years ago

  • Status changed from Resolved to 7
  • Resolution deleted (Fixed)

Reopening this, the JSON format isn't finished yet and I want to make sure it isn't missed.

Actions #17

Updated by Eric Davis over 14 years ago

  • Status changed from 7 to Closed
  • Assignee set to Eric Davis
  • % Done changed from 0 to 100
  • Resolution set to Fixed

Added json support to the issues API (r3766).

Actions

Also available in: Atom PDF