search cancel

Unable to release reserved data using API calls

book

Article ID: 212469

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

We are building "Find &  Reserve" functionality and facing the following issues:

 

  1. When trying to release the reserved data by using the API as below

    DELETE http://<server:host>/TDMDataReservationService/api/ca/v1/reservations//?reservationId={{reservationid}}

    We are getting error:

    {

        "status" : 405,

        "errorCode" : "405 METHOD_NOT_ALLOWED",

        "errorMsg" : "Request method 'DELETE' not supported",

        "errorDetail" : "",

        "timestamp" : "2021-04-09T12:18+0000"

    }




  2. When using the below API to check the reservation status, by passing a reservation id in the output, we are getting the status (Purged) of all the previously reserved data. Is this the expected behavior of this API?

GET http://<server:host>/TDMDataReservationService/api/ca/v1/reservations/?reservationId={{reservationid}}

 

Can you suggest if there are any updated URl for these functionalities?

Environment

Release : 4.9.1

Component : CA Agile Requirements Designer - TMX Script Generator

Resolution

 Please use the below API call to release the reservation.

Method:  DELETE
End point:   https://<Hostname>:<ip_address>/TDMDataReservationService/api/ca/v1/reservations/<reservation_id>?projectId=<Project_ID>&versionId=<Version_id>

To retrieve reservation details for a given reservation ID,

Method:  GET
End point:   https://<Hostname>:<ip_address>/TDMDataReservationService/api/ca/v1/reservations/<reservation_id>?projectId=<Project_ID>&versionId=<Version_id>