Rest Apis for OTRS 6.0

Moderator: crythias

Post Reply
nitishchand
Znuny newbie
Posts: 1
Joined: 11 Dec 2019, 06:27
Znuny Version: 6.0
Real Name: Nitish Chandna

Rest Apis for OTRS 6.0

Post by nitishchand »

can anyone provide me documentation for what all Rest Apis are exposed by OTRS 6.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Rest Apis for OTRS 6.0

Post by jojo »

Search for Kernel::GenericInterface::Operation:: in https://doc.otrs.com/doc/api/otrs/stabl ... index.html

Also have a look at https://github.com/OTRS/otrs/blob/rel-6 ... rREST.wsdl
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Rest Apis for OTRS 6.0

Post by zzz »

Hey,

Minor correction: use this link https://doc.otrs.com/doc/api/otrs/6.0/Perl/ or you'll use the API of a none available version.

Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Rest Apis for OTRS 6.0

Post by jojo »

Stable version of OTRS is the mentioned link. There is no difference in the GenericInterface Provider to ((OTRS)) community edition 6.x
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Rest Apis for OTRS 6.0

Post by zzz »

Your linked page is the API for OTRS 7 which has a different API than OTRS 6 (Community Edition).

Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Rest Apis for OTRS 6.0

Post by jojo »

- OTRS 7 is the stable version
- the Generic Interface Provider Operations are the same (except Kernel::GenericInterface::Operation::Generic::RPC)

so no issue with this.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Rest Apis for OTRS 6.0

Post by zzz »

jojo wrote: 12 Dec 2019, 17:00 - OTRS 7 is the stable version
- the Generic Interface Provider Operations are the same (except Kernel::GenericInterface::Operation::Generic::RPC)

so no issue with this.
I am sorry, but that is not true.
There are multiple differences. In the first case, why even bother using a different doc than the version you use?

Also, this forum is not for OTRS 7, but for OTRS 1–6. And he is even using OTRS 6.

Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Rest Apis for OTRS 6.0

Post by root »

zzz wrote: 12 Dec 2019, 17:18 Also, this forum is not for OTRS 7, but for OTRS 1–6. And he is even using OTRS 6.
Sorry to interrupt: This forum is for the ((OTRS)) Community Edition, without any restriction of the version number.
The commercial product OTRS usually comes with a support contract from the vendor, ask there if questions coming up.
Maybe an official definition of stable from the vendor would help. At least from SECURITY.MD I take the intel that version 5,6 and 7 are supported with security updates. Mature versions like 5 and 6 were stable and I don't have a clue why they shouldn't be stable anymore.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
kishormali
Znuny newbie
Posts: 12
Joined: 20 Jan 2020, 12:12
Znuny Version: 6.0
Real Name: Kishor Mali

Re: Rest Apis for OTRS 6.0

Post by kishormali »

Hello All,
I don't find any REST API for V6.0 Community Version.
It is available for V7.0 on the link - https://doc.otrs.com/doc/api/otrs/stable/REST/
But I am already using V6.0. I gone through Gereric Interface (https://doc.otrs.com/doc/manual/admin/6 ... 7.11.9.9.1), from there I come to know that, it just an interface. And I need to write code to achieve functionalities of REST which are already there in V7.0.
Correct me if I am wrong.

Is there any way to get REST API's in 6.0 version without writing code in Perl. I am PHP developer and I am trying to consume OTRS REST API in my PHP application.
Any type of help highly appreciated.
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Rest Apis for OTRS 6.0

Post by zzz »

Hey,

You can check this PHP example:
https://github.com/rkaldung/otrs-gi-rest-php

You don't have to use any Perl code.

Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
kishormali
Znuny newbie
Posts: 12
Joined: 20 Jan 2020, 12:12
Znuny Version: 6.0
Real Name: Kishor Mali

Re: Rest Apis for OTRS 6.0

Post by kishormali »

Hi @zzz, At first, Thanks a lot for the help.

I am using Managed OTRS trial by OTRS for 1 month. I am using the same URL as BaseURL in client.php.
But it return 404 error response.
By URL be like : https://mycompanyname.managed-otrs.com/ ... nectorREST

Anything I missed here?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Rest Apis for OTRS 6.0

Post by jojo »

The connector is not installed by default. Please contact sales@otrs.com for support
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
kishormali
Znuny newbie
Posts: 12
Joined: 20 Jan 2020, 12:12
Znuny Version: 6.0
Real Name: Kishor Mali

Re: Rest Apis for OTRS 6.0

Post by kishormali »

Hi @jojo, I doubt that I need to buy the thing if I try to activate connector by contacting sales.

What if I setup Community V6.0 on my local environment? Can I access Webservices?
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Rest Apis for OTRS 6.0

Post by root »

kishormali wrote: 21 Jan 2020, 11:14 Hi @jojo, I doubt that I need to buy the thing if I try to activate connector by contacting sales.

What if I setup Community V6.0 on my local environment? Can I access Webservices?
Yes, you can upload the web service configuration from Github. Same info is availabel on the Github repo for the example PHP client.
And you are also able to send e-mail through the GenericInterface with the free add-on Znuny4OTRS-GIArticleSend

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
kishormali
Znuny newbie
Posts: 12
Joined: 20 Jan 2020, 12:12
Znuny Version: 6.0
Real Name: Kishor Mali

Re: Rest Apis for OTRS 6.0

Post by kishormali »

Hi @root: Thanks buddy! I will try this on my local environment, and let you know about further results (success or failure).
Thanks for the great help!
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Rest Apis for OTRS 6.0

Post by jojo »

kishormali wrote: 21 Jan 2020, 11:14 Hi @jojo, I doubt that I need to buy the thing if I try to activate connector by contacting sales.

What if I setup Community V6.0 on my local environment? Can I access Webservices?
On Free Trials Sales will take care on activating Webservices or Features for you
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply