Feature #10384

Versions REST API - Please add the WIKI field in the XML output

Added by Yannick SAVANIER over 5 years ago. Updated over 4 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:REST API
Target version:-
Resolution:

Description

Hi,

Actualy the Versions REST API isn't sending the wiki page linked to the version and thus we have to extrapolate the wiki adress based on the version's name, hoping the syntax is the same...

redmine-versions-api-wiki.patch Magnifier - wiki patch for versions REST API (926 Bytes) Yannick SAVANIER, 2012-03-07 09:35

redmine_versions_wiki_page.patch Magnifier (1.69 KB) Brice Beaumesnil, 2012-03-08 09:35

redmine_versions_wiki_page.patch Magnifier (1.7 KB) Brice Beaumesnil, 2012-03-08 09:39

History

#1 Updated by Yannick SAVANIER over 5 years ago

Here is the patch to solve the issue.

#2 Updated by Yannick SAVANIER over 5 years ago

  • Status changed from New to Resolved

#3 Updated by Etienne Massip over 5 years ago

  • Status changed from Resolved to New

#4 Updated by Jean-Philippe Lang over 5 years ago

I don't know. I don't like to version/wiki_page mechanism very much and I'd find awkward to put this logic in the API. I'd prefer to add the wiki page content as an attribute of the version in the API (eg. full_description or something). Maybe on the UI as well.

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

  • Tracker changed from Defect to Feature

#6 Updated by Brice Beaumesnil over 5 years ago

something like this in index.api.rsb ?

api.full_description version.wiki_page.content.text if version.wiki_page

#7 Updated by Brice Beaumesnil over 5 years ago

It's done in this patch

#8 Updated by Brice Beaumesnil over 5 years ago

sorry i forgot an underscore in show.api.rsb file.

#9 Updated by Yannick SAVANIER over 5 years ago

Thank you Jean-Philippe for this suggestion as it seems more efficient.
Thank you Brice for the update.
I hope this will get to the next release :)

#10 Updated by clgroschmu billaa over 5 years ago

  • Assignee set to Yannick SAVANIER

-

#11 Updated by Etienne Massip over 5 years ago

  • Assignee deleted (Yannick SAVANIER)

#12 Updated by akestomm aifseng over 5 years ago

  • Assignee set to Jonas De Meulenaere

-

#13 Updated by Jonas De Meulenaere over 5 years ago

  • Assignee deleted (Jonas De Meulenaere)

#14 Updated by rosturad John over 5 years ago

  • Assignee set to Maxim Krušina

-

#15 Updated by Etienne Massip over 5 years ago

  • Assignee deleted (Maxim Krušina)

#16 Updated by onalbertsopr billaa over 5 years ago

  • Assignee set to Jean-Baptiste Barth

#17 Updated by RedminePro Yang over 5 years ago

Please show "sharing", "status" value of Version in the json output

#18 Updated by Yannick SAVANIER over 5 years ago

Are you planning adding those 2 lines of code anytime soon ?

Could you tell us what we can do to help you to solve this issue ?

Don't hesitate asking.

Cheers :)

#19 Updated by Yannick SAVANIER over 5 years ago

  • Assignee changed from Jean-Baptiste Barth to Etienne Massip

This onalbertsopr billaa did assign this issue to a man who logged last year...

#20 Updated by Etienne Massip over 5 years ago

  • Assignee deleted (Etienne Massip)

#21 Updated by Yannick SAVANIER over 5 years ago

  • Assignee set to Jean-Philippe Lang

Hi sorry of poking you this way but could you please give us feedback about the patch provided so we can do what is still needed for this issue to be resolved ?
Thank you.

#22 Updated by Jean-Philippe Lang over 5 years ago

The patch does not allow to update the full description. Does it make sense to add it to the API as read-only?

#23 Updated by Benoit Duffez over 4 years ago

Allow me to bump this: it's not implemented in Redmine, yet I feel like it is missing.
The versions REST API doesn't return the associated wiki page in read mode.
Read-only access would be a start, while RW access would of course be better!
Thanks.

Also available in: Atom PDF