commandprompt / redmine_pastebin

A real pastebin plugin for Redmine. At last!
Other
34 stars 17 forks source link

Rest API support #10

Closed florentsolt closed 11 years ago

florentsolt commented 12 years ago

I've added the support for the Rest API available via Redmine (http://www.redmine.org/projects/redmine/wiki/Rest_api)

It helps a lot to make plugins for Textmate or Sublime text, or even shell script via Curl.

Hope you will like it.

a1exsh commented 12 years ago

Sorry for delay on this. I have a few questions:

  1. How would I access the API for pastes? I've tried adding .api suffix to /projects/$project/pastes URI, but that results in 406 Not Acceptable status.
  2. Do you know of a way to DRY-up index.api.rsb, so it reuse the show API action? If that would be erb, I'd use a partial, but I have no idea what is equivalent for rsb.

Thank you.

a1exsh commented 12 years ago
  1. I've opened a discussion on redmine.org boards, after I've noticed that Redmine's RSB templates do the same thing: http://www.redmine.org/boards/1/topics/29951
florentsolt commented 11 years ago

You can skip this pull request, I've miss you comment last year :( Sorry about that.