9

Is it possible to achieve all the functionality using REST API, which can be achieved using OTA. I do understand that there are examples given in both OTA and REST API Documentation, which is provided by HP. But I need to understand things in layman terms,as I am asked to do a feasibility study whether it is possible to so the same amount of work in REST as is possible in OTA.

I would be highly benefited if someone could provide me with the pros and cons of REST and OTA w.r.t the HP ALM.

Koby Douek
  • 16,156
  • 19
  • 74
  • 103
Parag
  • 107
  • 1
  • 1
  • 4

1 Answers1

16

Simple answer is that the REST API does not have all the functionality currently available in the OTA API. The REST API primarily focuses on simple CRUD operations of core entities in the client (CRUD = create, read, update, delete). You can compare the documentation for the two API's to see if you will be able to achieve everything you want with REST.

The main benefit of REST over OTA is that it does not require any client-side software to be installed/registered. You simply post HTML requests to a server and process the XML-formatted results. This opens the API to more clients than ever before.

The main benefit of OTA over REST is that it exposes more ALM functionality. For those programming in an environment that easily supports COM objects, you may also find the object-based nature of the API easier to work with, especially if your editor provides rich IntelliSense.

Basically OTA is the API of the past, and REST is the API of the future. It will just take time before HP can get all the functionality exposed via REST.

HgCoder
  • 1,243
  • 9
  • 14
  • Thanks for the answer. Just one small doubt though. I wanted to know whether I can perform all the task using the current version of REST(which can be performed using OTA). I can see the HP website mentioning that the scope of the REST API is not final, and it is still under development. We have certain java code which was written using OTA, which I am told to write again in REST. This is needed as OTA doesnt support 64bit and REST is architecture neutral. Please help... Thanks in advance. – Parag Jun 30 '14 at 05:30
  • No, you can't do everything in REST that can be performed using OTA. However, you might be able to replicate everything that your current OTA implementation does. You'll have to pour over your current code, identify which aspects of the OTA API are in use, and then check that against the REST API to see if equivalent functionality is available. – HgCoder Jun 30 '14 at 12:24
  • Is the answer from @HgCoder concerning the REST API from HP ALM 11 or 12 or both? – Peti Oct 14 '14 at 11:23
  • REST comment applies to both ALM 11 and ALM 12, although you will find more API's covered in ALM 12 and expect that to improve with each new release. – HgCoder Oct 14 '14 at 15:29