I have begun work on a RoR app that maps Rails RESTFul controllers to OTRS/ITSM API via the OTRS json interface.
Relies heavily on ActiveModel and I am trying to make the methods look/feel like you are using full ActiveRecord.
I have modified the supplied json.pl (I believe this is bundled as part of the iPhone package) to add in support for the ITSM modules one-by-one as I have needed.
I have posted this on GitHub.
Still a work heavy in development, however is useable for searching/creating tickets, linking objects (Tickets, CI's, etc), currently working on change management/work order system.
App is currently made to be slipped into an existing rails app or to run as a stand-alone app that communicates with your existing app via json.
I have not created any views.
git://github.com/cpuguy83/rails_otrs.git
Rails API connector
-
- Znuny expert
- Posts: 296
- Joined: 04 Jul 2010, 17:49
- Znuny Version: 3.1.x
- Real Name: Alexander Halle
- Company: radprax MVZ GmbH
- Location: Wuppertal
- Contact:
Re: Rails API connector
Do you use the iPhone module as JSON interface or which one?
Thnaks for publishing your code!
Thnaks for publishing your code!
Alexander Halle
OTRS Community Links: User Meetings, Projects
- Public Relations @ OTRS Community Board / OtterHub
- 2nd-Level Support Agent @ radprax MVZ GmbH
OTRS Community Links: User Meetings, Projects
-
- Znuny newbie
- Posts: 11
- Joined: 15 Sep 2011, 23:42
- Znuny Version: 3.0.10
- Real Name: Brian Goff
Re: Rails API connector
I'm not 100% sure, I believe the iPhone module provides that json.pl file in OTRS_ROOT/bin/cgi-bin/json.pl, but again I'm not sure. This is what I'm interfacing with.
I have added new code to this file and will publish it in the lib directory of the rails app for people to access.
It will have to be copied over to your OTRS cgi-bin directory for all the functionality to work (specifically ITSM stuff).
The new items I put in this file are nothing much, just including the paths to the needed perl files and adding Objects that will be accepted.
I have added new code to this file and will publish it in the lib directory of the rails app for people to access.
It will have to be copied over to your OTRS cgi-bin directory for all the functionality to work (specifically ITSM stuff).
The new items I put in this file are nothing much, just including the paths to the needed perl files and adding Objects that will be accepted.
-
- Znuny expert
- Posts: 296
- Joined: 04 Jul 2010, 17:49
- Znuny Version: 3.1.x
- Real Name: Alexander Halle
- Company: radprax MVZ GmbH
- Location: Wuppertal
- Contact:
Re: Rails API connector
Ok, I think it's really the iPhone json.pl.
Please notice that the iPhone module uses JSON only currently, AFAIK future versions will use the new Generic Interface of OTRS 3.1. So it could be that this JSON interface won't be maintained any longer.
I don't want to discourage you, the opposite is true, I just want to make surethat you have all information so that you can plan. The JSON interface isn't officially promoted (too bad, I like it) or documented.
Thanks again for sharing code, this is the goal.
Alexander
Please notice that the iPhone module uses JSON only currently, AFAIK future versions will use the new Generic Interface of OTRS 3.1. So it could be that this JSON interface won't be maintained any longer.
I don't want to discourage you, the opposite is true, I just want to make surethat you have all information so that you can plan. The JSON interface isn't officially promoted (too bad, I like it) or documented.
Thanks again for sharing code, this is the goal.
Alexander
Alexander Halle
OTRS Community Links: User Meetings, Projects
- Public Relations @ OTRS Community Board / OtterHub
- 2nd-Level Support Agent @ radprax MVZ GmbH
OTRS Community Links: User Meetings, Projects
-
- Znuny newbie
- Posts: 11
- Joined: 15 Sep 2011, 23:42
- Znuny Version: 3.0.10
- Real Name: Brian Goff
Re: Rails API connector
Added support for services, create/update methods for CI's + xml_storage stuff, several other items.
-
- Znuny newbie
- Posts: 1
- Joined: 23 Nov 2012, 04:05
- Znuny Version: 3.1.11
- Real Name: Marice S. Juguilon
- Company: Cloudstaff
Re: Rails API connector
can you help me regarding this topic?
i can't connect my otrs on my application.
Thank you so much
i can't connect my otrs on my application.
Thank you so much