Feature #7403

REST API for Versions

Added by Markus May almost 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:2011-01-21
Priority:NormalDue date:
Assignee:-% Done:

80%

Category:REST API
Target version:1.3.0
Resolution:Fixed

Description

It would be great to have versions available via the REST API.


Related issues

Related to Redmine - Feature #9088: REST API to create Project Versions Closed 2011-08-18

Associated revisions

Revision 6180
Added by Jean-Philippe Lang over 6 years ago

Adds REST API for versions (#7403).

Revision 6183
Added by Jean-Philippe Lang over 6 years ago

Makes versions resource shallow (#7403).

History

#1 Updated by Florent Fievez over 6 years ago

+1
I have a database storing some info about our product versions, and for now, i must store redmine version id to display a link to redmine, I think it's bad to store id while it should be very simple for redmine to provide an api to display versions based on project and name.

#2 Updated by Ramesh Nair over 6 years ago

Hey guys, I've had a crack at doing this. You can grab the changes from my forked code over at Github ->

https://github.com/7city/redmine/commit/97341f33e61761e018f140e1d5e8b06c53e37b3d

I'm not a Ruby developer so I'm sure it can be done much more elegantly!

#3 Updated by Ramesh Nair over 6 years ago

Forgot to add, to fetch the versions as XML simply append ".xml" to the normal Roadmap URL as such:

http://redmine/projects/myproject/roadmap.xml

I did think of using versions.xml or something like that but I'm sure the Redmine core team have some better ideas on that.

#4 Updated by Ramesh Nair over 6 years ago

URL is better now:

/versions.xml?project_id=<project number of url-friendly name>

Ramesh Nair wrote:

Forgot to add, to fetch the versions as XML simply append ".xml" to the normal Roadmap URL as such:

http://redmine/projects/myproject/roadmap.xml

I did think of using versions.xml or something like that but I'm sure the Redmine core team have some better ideas on that.

#5 Updated by Toshi MARUYAMA over 6 years ago

  • Category set to REST API

#6 Updated by Jean-Philippe Lang over 6 years ago

  • Subject changed from REST API - Versions to REST API for Versions
  • Status changed from New to Resolved
  • Target version set to 1.3.0
  • % Done changed from 0 to 80

Added in r6180. See Rest_Versions.

#7 Updated by Alex Last over 6 years ago

#8 Updated by Jean-Philippe Lang over 6 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Fixed

#9 Updated by Go MAEDA 10 months ago

  • Related to Feature #9088: REST API to create Project Versions added

Also available in: Atom PDF