API for Requirement

Get Requirement list along with Custom Fields

POST /rest/requirements/list/viewColumns

Description

Fetch data of Requirements along with custom fields. Returns data from latest version.

Request

Content-Type: application/json


Parameters

NameLocated inRequiredDescriptionDefaultSchema
viewIdbodyyesView ID of the user for that particular project and Requirement module. View ID can be fetched from latestViews section of Getinfo API.-integer
folderPathbodyyesPath of folder whose Requirements are to be fetched-string
startbodynoStart index of records-integer
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer
scopebodyyes"project"-string

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement list fetched successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

Get Details of a Requirement

POST /rest/requirements/list

Description

Get details of a requirement by providing ID of requirement, requirement version ID.

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
startbodynoStart index of records-integer
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer
idbodyyesId of Requirement-integer
filterbodynoFilter to be applied-string

Response

Content-Type:application/json

Status CodeReasonResponse Model
200Requirement list fetch successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-


List Requirement version detail

POST /rest/requirements/getVersionDetail

Request

Content-Type: application/json

Parameters

Parameters
NameLocated inRequiredDescriptionDefaultSchema
rqIDbodyyesId of Requirement-integer
startbodynoStart index of records-integer
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement version detail list fetch successfully.ResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-


List Requirements for Bulk  Operation

POST /rest/requirements/listForBulkOperation

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
folderPathbodyyesFolderPath of folder whose requirements are to be listed-string
startbodynoStart index of records-integer
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer
filterbodynoFilters to apply-Array[Filter]

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement list fetch successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

Fetch Requirement List For Issue

POST /rest/requirements/list/forIS

Description

Get Requirement list based on particular id of issue.

Request

Content-Type: application/json

Parameters


NameLocated inRequiredDescriptionDefaultSchema
dfIDbodynoId of issue-integer
startbodynoStart index of records-integer
getLinkedbodynoTrue to get only those requirements that are linked with this Issue, false to get those requirements which are not linked with this Issue-boolean
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer
getColumnsbodynoTrue to get list of all available filters(System + UDF) in 'filterTemplate' field-boolean
udfFilterbodynoApply filter on user defined fields' values-Array[UdfFilter]
filterbodynoSystem filters to be applied-Array[Filter]


Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement list fetch successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-


Get List of Issues for a Requirement

POST /rest/issues/list/ForRQ

Description

Get issue list based on the particular requirement

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
startbodynoStart index of records-integer
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer
getColumnsbodynoTrue to get list of all available filters(System + UDF) in 'filterTemplate' field-boolean
udfFilterbodynoApply filter on user defined fields' values-Array[UdfFilter]
getLinkedbodynoTrue to get only those issues that are linked with this Requirement, false to get those issues which are not linked with this Requirement-boolean
rqIDbodynoId of Requirement-integer
filterbodynoSystem filters to be applied-Array[Filter]

Response

Content-Type: application/json

Status CodeReasonResponse Model
200List of issues shown successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-


Get List of Requirements while Linking to a Test suite

POST /rest/requirements/list/forTS

Description

Requirement list for Test Suite.

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
startbodynoStart index of records-integer
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement list fetch successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-


Fetch Requirement List For Test Case

POST /rest/requirements/list/forTC

Description

Get Requirement list based on particular id of test case.

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
tcIDbodynoId of testcase-integer
startbodynoStart index of records-integer
getLinkedbodyno

True to get only those requirements that are linked with this Testcase, false to get those requirements which are not linked with this Testcase

-boolean
showEntityWithReleaseCyclebodynoList only Requirement which have given tcID's release and cycle-boolean
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement list fetch successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-


View Requirement Details

POST /rest/requirements/detail/data

Description

To view particular requirement's all fields

Request

Content-Type: application/json

Parameters

Name

Located inRequiredDescriptionDefaultSchema
versionbodyyesVersion number of Requirement-integer
idbodyyesId of Requirement-integer

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement fetch successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

View Requirement's Version Information

POST /rest/requirements/versions/{id}

Request

Parameters

NameLocated inRequiredDescriptionDefaultSchema
entityIdbodyyesId of Requirement-integer
filterbodynofilters to apply-Array[Filter]
idpathyesId of Requirement-integer

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement Version detail fetch successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out

Create Requirement

POST /rest/requirements

Request

Content-Type:application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
rqFolderIdbodyyesFolderId of Requirement-string
namebodyyesSummary of the Requirement-string
prioritybodynoPriority of Requirement-Array[integer]
componentbodynoLabel of Requirement-Array[integer]
requirementStatebodynoStatus of Requirement-Array[integer]
descriptionbodynoDescription of Requirement-string
ownerbodynoOwner of Requirement-integer
scopebodyyesScope of the Requirement, possible values project,release,cycle,build-string

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement created successfullyResponseEntity
400Returned in case of- Invalid json/project/client-
500Returned when server connection times out-

Update Requirement

PUT /rest/requirements

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
updateVersionFlagbodynoVersion number of Requirement-integer
updateWithVersionbodynoFlag for the requirement update with version or not-boolean
descriptionbodynoDescription of the Requirement-string
rqIdbodyyesId of Requirement-integer
rqVersionIdbodyyesVersionId of Requirement-integer
requirementStatebodynoStatus of Requirement-Array[integer]
prioritybodynoPriority of Requirement-Array[integer]
ownerbodynoOwner of Requirement-integer
namebodynoSummary of Requirement-string
componentbodynoLabel of Requirement-Array[integer]

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement updated successfullyRequirementRepository
400Returned in case of- Invalid json object or invalid UDF-
401Unautorised, insufficient privileges or session expired-
500Returned when server connection times out-


Archive Requirement

POST /rest/requirements/archiveEntity

Description

API To archive requirement based on specific version or all version

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
entityIdsbodyyesAn array of requirementId or requirementVersionId-Array[integer]
isArchivedbodyyesTrue for archive, false for unarchive-boolean
isEntityVersionbodynoTrue for archive specific version of Requirement otherwise false-boolean

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement archive successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

Delete Requirement

POST /rest/requirements/deleteEntity

Description

API To Delete Requirement

Request

Content-Type: application/json

Parameters

Name

Located inRequiredDescriptionDefaultSchema
entityIdsbodyyesAn array of RequirementId-Array[integer]

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement deleted successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

Delete Requirement Version

POST /rest/requirements/deleteEntityVersion

Description

API To Delete Requirement Version

Request

Content-Type: application/json

Parameters

Name

Located inRequiredDescriptionDefaultSchema
entityIdbodyyesId of Requirement-integer
entityVersionsbodyyesAn array of version number of the Requirement-Array[integer]

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement version deleted successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

Get Requirement Folder/Sub Folder List (Deprecated)

GET /rest/requirements/tree

Description

Get folder/subfolder data based on folder id or list of folder with requirement

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
rqActiveScopequerynoScope of Requirement, possible values are btnRqScopeToolCycle,btnRqScopeToolRelease,btnRqScopeToolProject-string
rqSortTreeColumnquerynoSort criteria based on which Requirement folders list will be obtained-string
rqSortTreeDirquerynoDirection of sorting, possible values ASC or DESC-string
nodequeryyesId of parent folder whose sub folders are to be fetched-integer
hideFoldersquerynoSend to true to hide empty folders-boolean
showEntityquerynoTrue for fetch folder data with list of requirement inside folder, false for only folder data-boolean
scopequeryyesScope of Requirement, possible value likes project,cycle,release-string

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Successfully get requirement listResponseEntity
400Mandatory field(s) is missing.-
401Unauthorised or session expired-
500Returned if there is an error in server-


List Requirement Folders for selected folder

POST /rest/requirements/tree

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
rqFolderIDbodyyesFolder ID of Selected Requirement Folder-integer
hideFoldersbodynoFlag to Hide empty Folders-boolean
sortbodynoSort Folders by date or name-string

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement folders detail list fetch successfully.ResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-


Create Requirement Folder

POST /rest/requirements/folders

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
parentIdbodyyesId of parent folder-integer
namebodyyesFolder Name-string

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Successful creation of requirement folderResponseEntity
400Mandatory field(s) is missing.-
401Unauthorised or session expired-
500Returned if there is an error in server-

Archive Requirement Folder

POST /rest/requirements/folder/archive

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
Archive Folder RequestbodyyesArchive Folder Inputs-RqFolderArchiveRequestDetail

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Folder archived successfullyResponseEntity
400Following fields are missing:rqFolderIDs-
401Unauthorised or session expired-
500Returned when server connection times out-

Unarchive Requirement Folder

POST /rest/requirements/folder/unarchive

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
Unarchive Folder RequestbodyyesUnarchive Folder Inputs-RqFolderUnarchiveRequestDetail

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Folder unarchived successfullyResponseEntity
400Following fields are missing:rqFolderIDs-
401Unauthorised or session expired-
500Returned when server connection times out-

Update Requirement Folder

PUT /rest/requirements/folders

Request

Content-Type: application/json

Parameters

Name

Located inRequiredDescriptionDefaultSchema
namebodyyesUpdated Folder Name-string
folderIdbodyyesUnique identifier of Requirement Folder to update-integer

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Successful updation of requirement folderResponseEntity
400Mandatory field(s) is missing.-
401Unauthorised or session expired-
500Returned if there is an error in server-

Delete Requirement Folder

POST /rest/requirements/folders/delete

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
folderIdbodyyesFolderId of Requirement-integer

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement folder deleted successfully.ResponseEntity
400Invalid json object or tried to delete root folder-
500Returned when server connection times out-

Get List of Testcase in Requirement [Deprecated]

POST /rest/requirements/testcase/list

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
rqIDbodyyesId of Requirement-integer
limitbodyyesNumber of record per page-integer
pagebodyyesPage number to be displayed-integer
startbodyyesStart index of records-integer

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Testcase list fetch successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-


Get Testcase List for Requirement

POST /rest/testcases/list/forRQ

Getting test case list based on particular id of requirement.

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
rqIDbodynoId of Requirement-integer
startbodynoStart index of records-integer
getLinkedbodynoTrue to get only those testcases that are linked with this Requirement, false to get those testcases which are not linked with this Requirement-boolean
showEntityWithReleaseCyclebodynoList only Testcase which have given rqID's release and cycle-boolean
limitbodynoNumber of records per page-integer
pagebodynoPage number to be displayed-integer
getColumnsbodynoTrue to get list of all available filters(System + UDF) in 'filterTemplate' field-boolean
udfFilterbodynoApply filter on user defined fields' values-Array[UdfFilter]
filterbodynoSystem filters to be applied-Array[Filter]

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Testcase list fetch successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-


Link Test Cases to Requirement

PUT /rest/requirements/link/testcases

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
rqIDbodyyesEntitykey of the Requirement-string
rqVersionIdbodyyesComma-separated list of versionId to the Requirement-string
tcVersionIdsbodyyesVersionId of Test Case-integer
rqEntitykeysbodynoComma-separated list of EntityKey to the Requirement-string

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Testcase(s) linked successfullyResponseEntity
400Returned in case of- Invalid rqVersionId/tcVersionIds or failed operation-
500Returned when server connection times out-

Unlink Testcase from Requirement

PUT /rest/requirements/unlink/testcases

Description

API to unlink testcase(s) from requirement

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
rqIDbodyyesEntitykey of the Requirement-string
rqVersionIdbodyyesVersionId of Requirement-integer
tcVersionIdsbodyyesAn array of testcase version's Id-Array[integer]

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Testcase unlink successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

Link Issues to Requirement

PUT /rest/requirements/link/issues

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
rqIDbodyyesEntityKey of Requirement-string
dfIDsbodyyesIDs of Issues to be linked with Requirement-Array[integer]

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Issues successfully linked to requirementResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

Unlink Issue from Requirement

PUT /rest/requirements/unlink/issues

Description

API to unlink issue from requirement

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
dfIDsbodyyesAn array of issue Id-Array[integer]
rqIDbodyyesEntityKey of Requirement-string

Response

Content-Type: application/json

Status CodeReasonResponse Model
200unlink issue successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

View Release & Cycle of Requirement

PUT /rest/requirements/scope/list

Description

To view list of scope(Release/Cycle) for requirement

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
entityIDbodyyesId of Requirement-integer
limitbodyyesNumber of record per page-integer
pagebodyyesPage number to be displayed-integer
startbodyyesStart index of records-integer

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Scope(Release/Cycle) fetch successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

Add Release & Cycle Requirement

POST /rest/requirements/scope/add

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
entityIdbodyyesId of Requirement-integer
sourceBuildIdbodyyesBuildId of the Cycle associated with Release-integer
sourceProjectIdbodyyesProjectId of the Requirement-integer
sourceReleaseIdbodyyesReleaseId of the Project-integer
sourceScopebodyyesScope for the requirement likes to project, release, build, cycle-string
entityTypebodyyesEntity type for the requirement, the default value is RQ-string
releaseCycleMappingbodyyesAn array of release, cycle & version mapping-Array[ReleaseCycleMapping]
opTypebodyyesOperation types possible value likes otherscope or current-string
withVersionbodynoScope added with the version or not-boolean
updateFlagbodynoThis flag for the scope update or not-boolean
destinationProjectIdbodyyesProjectId based on operation type, possible value likes current project or another project of the id-integer
entityDatabodyyesAn array of entityId & version for the Requirement-Array[EntityData]

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Add to scope successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

Remove Release & Cycle from Requirement

POST /rest/requirements/scope/remove

Description

API to remove scope(release/cycle) from requirement

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
entityIdbodyyesId of Requirement-integer
sourceBuildIdbodyyesBuildId of the Cycle associated with Release-integer
sourceProjectIdbodyyesProjectId of Requirement-integer
sourceReleaseIdbodyyesReleaseId of the Project-integer
entityTypebodyyesEntity type for the requirement, the default value is RQ-string
opTypebodyyesOperation types possible value likes currentBuild,allBuildsInRelease,allReleases-string

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Remove scope successfullyResponseEntity
400Invalid json object or mandatory fields missing-
401Unauthorised or session expired-
500Returned when server connection times out-

Get List of Users for Project

POST /rest/requirements/list/projectUsers

Request

Content-Type: application/json

Parameters

NameLocated inRequiredDescriptionDefaultSchema
projectIdbodyyesProjectId-integer
rqIdbodyyesId of Requirement-integer

Response

Content-Type: application/json

Status CodeReasonResponse Model
200successfully get list of users for projectResponseEntity
400Invalid json object or mandatory fields missing-
500Returned when server connection times out-


Get BDD Branch List

POST /rest/requirements/getBranchList

Description

Get the branch of repository.

Request

Content-Type: application/json

Name
Located in
Required
Description
Default
Schema
bddConfigIDbodyyesID of BDD repository for particular project from DB.-integer


Response

Content-Type: application/json

Status CodeReasonResponse Model
200Branch list fetched successfully.ResponseEntity
400Missing mandatory fields.-
401Unauthorised or session expired-
500Returned when server connection times out-

Pull File from Repository

POST /rest/requirements/pullFile

Request

Content-Type: application/json

Name
Located in
Required
Description
Default
Schema
bddConfigrationIDbodyyesID of BDD repository for particular project from DB.
integer
fileNamebodyyesName of the file which needs to get data from the repository.
string
bddFolderPathbodyyesFolder path of the repository where the file is located. If it is on root level, then there will be empty data.
string
rqVersionIDbodyyesID of rqversion from DB.
integer
bddBranchbodyyesBranch name of the repository from where the data will be pulled.
string

Response

Content-Type: application/json

Status CodeReasonResponse Model
200File data pulled successfully.ResponseEntity
400Missing mandatory fields.-
401Unauthorised or session expired-
500Returned when server connection times out-

Push File to Repository

POST /rest/requirements/pushFile

Request

Content-Type: application/json

Name
Located in
Required
Description
Default
Schema
bddDatabodyyesContent that needs to be pushed to the repository.
string
bddConfigrationIDbodyyesID of BDD repository for particular project from DB.
integer
fileNamebodyyesName of the file to push the data to repository.
string
bddFolderPathbodyyes

Folder path of repository where the file is located. If it is on root level, then there will be empty data.


string
commentsbodyyesPush comments for file.
string
rqVersionIDbodyyesRequirement Version ID.
integer
bddBranchbodyyesBranch name of repository from where data will get pushed.
string
notifyUserbodynoWhether to notify user (in "userList" parameter) or not.
boolean
userListbody

*no

*(needed if notifyUser is set "true")

List of QMetry users to whom the mail intimating the file push needs to be sent.
string

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Data pushed successfully.ResponseEntity
400Missing mandatory fields.-
401Unauthorised or session expired-
500Returned when server connection times out-

Update Requirements with BDD data

PUT /rest/requirements

Request

Content-Type: application/json

NameLocated inRequiredDescriptionDefaultSchema
updateVersionFlagbodynoVersion number of Requirement(value = 3)-integer
updateWithVersionbodynoFlag for the requirement update with version or not-boolean
descriptionbodynoDescription of the Requirement-string
rqIdbodyyesId of Requirement-integer
rqVersionIdbodyyesVersionId of Requirement-integer
requirementStatebodynoStatus of Requirement-Array[integer]
prioritybodynoPriority of Requirement-Array[integer]
ownerbodynoOwner of Requirement-integer
namebodynoSummary of Requirement-string
componentbodynoLabel of Requirement-Array[integer]
versionCommentbodynoComment about new version while creating it-string
bddDatabodynoContent which needs to save to QMetry.-string
fileNamebodynoName of file from repository.-string
bddConfigrationIDbodynoBDD Configuration ID-integer
bddBranchbodynoBranch name of repository.-string
bddFolderPathbodynoFolder path of repository where file located.-string

Response

Content-Type: application/json

Status CodeReasonResponse Model
200Requirement updated successfullyRequirementRepository
400Returned in case of- Invalid json object or invalid UDF-
401Unautorised, insufficient privileges or session expired-
500Returned when server connection times out-

Get BDD Folder Tree

POST /rest/requirements/getBDDFolderTree

Description

Get list of associated folders

Request

Content-Type: application/json

Name
Located in
Required
Description
Default
Schema
bddConfigIDbodyyesID of BDD repository for particular project from DB.-integer
bddBranchbodyyesBranch name of repository.-string
folderPathbodynoPath of the folder for which user wants to get the child folders in case of BitBucket repository.-string

Note: In case of Bitbucket repository, the API request returns first level of directory structure. To drill down to child folders, call the API again with the "folderPath" parameter that contains "fullPath" from the previous API response.

Response

Content-Type: application/json

Status CodeReasonResponse Model
200List of folders fetched successfullyResponseEntity
400Missing mandatory fields.-
401Unauthorised or session expired-
500Returned when server connection times out-

Definitions

CriteriaBuilder
nametyperequireddescriptionexample
EntityManager


nametyperequireddescriptionexample
propertiesobjectoptional-
openbooleanoptional-
delegateobjectoptional-
entityManagerFactoryEntityManagerFactoryoptional-
joinedToTransactionbooleanoptional-
criteriaBuilderCriteriaBuilderoptional-
transactionEntityTransactionoptional-
flushModestringoptional-
metamodelMetamodeloptional-
EntityManagerFactory
nametyperequireddescriptionexample
propertiesobjectoptional-
cacheCacheoptional-
openbooleanoptional-
criteriaBuilderCriteriaBuilderoptional-
persistenceUnitUtilPersistenceUnitUtiloptional-
metamodelMetamodeloptional-
EntityTransaction
nametyperequireddescriptionexample
activebooleanoptional-
rollbackOnlybooleanoptional-
Metamodel
nametyperequireddescriptionexample
entitiesarray[EntityTypeObject]optional-
managedTypesarray[ManagedTypeObject]optional-
embeddablesarray[EmbeddableTypeObject]optional-
ResponseEntity
nametyperequireddescriptionexample
headersobjectoptional-
bodyobjectoptional-
statusCodestringoptional-


RequirementRepository
nametyperequireddescriptionexample
managerEntityManageroptional-
fieldMapForViewColumnsobjectoptional-
joinExistsListForTSarray[string]optional-
ReleaseCycleMapping
nametyperequireddescriptionexample
releaseintegerrequiredId of Release
cyclearray[integer]requiredAn array of cycle's Id
versionintegerrequiredNumber of the version
EntityTypeObject
nametyperequireddescriptionexample
namestringoptional-
supertypeIdentifiableTypeObjectoptional-
idClassAttributesarray[SingularAttributeObjectObject]optional-
idTypeTypeObjectoptional-
attributesarray[AttributeObjectObject]optional-
declaredAttributesarray[AttributeObjectObject]optional-
pluralAttributesarray[PluralAttributeObjectObjectObject]optional-
singularAttributesarray[SingularAttributeObjectObject]optional-
declaredPluralAttributesarray[PluralAttributeObjectObjectObject]optional-
declaredSingularAttributesarray[SingularAttributeObjectObject]optional-
persistenceTypestringoptional-
bindableTypestringoptional-
EmbeddableTypeObject
nametyperequireddescriptionexample
attributesarray[AttributeObjectObject]optional-
declaredAttributesarray[AttributeObjectObject]optional-
pluralAttributesarray[PluralAttributeObjectObjectObject]optional-
singularAttributesarray[SingularAttributeObjectObject]optional-
declaredPluralAttributesarray[PluralAttributeObjectObjectObject]optional-
declaredSingularAttributesarray[SingularAttributeObjectObject]optional-
persistenceTypestringoptional-
ManagedTypeObject
nametyperequireddescriptionexample
attributesarray[AttributeObjectObject]optional-
declaredAttributesarray[AttributeObjectObject]optional-
pluralAttributesarray[PluralAttributeObjectObjectObject]optional-
singularAttributesarray[SingularAttributeObjectObject]optional-
declaredPluralAttributesarray[PluralAttributeObjectObjectObject]optional-
declaredSingularAttributesarray[SingularAttributeObjectObject]optional-
persistenceTypestringoptional-
IdentifiableTypeObject
nametyperequireddescriptionexample
supertypeIdentifiableTypeObjectoptional-
idClassAttributesarray[SingularAttributeObjectObject]optional-
idTypeTypeObjectoptional-
attributesarray[AttributeObjectObject]optional-
declaredAttributesarray[AttributeObjectObject]optional-
pluralAttributesarray[PluralAttributeObjectObjectObject]optional-
singularAttributesarray[SingularAttributeObjectObject]optional-
declaredPluralAttributesarray[PluralAttributeObjectObjectObject]optional-
declaredSingularAttributesarray[SingularAttributeObjectObject]optional-
persistenceTypestring
AttributeObjectObject
nametyperequireddescriptionexample
namestringoptional-
declaringTypeManagedTypeObjectoptional-
collectionbooleanoptional-
persistentAttributeTypestringoptional-
javaMemberMemberoptional-
associationbooleanoptional-
SingularAttributeObjectObject
nametyperequireddescriptionexample
typeTypeObjectoptional-
versionbooleanoptional-
optionalbooleanoptional-
idbooleanoptional-
namestringoptional-
declaringTypeManagedTypeObjectoptional-
collectionbooleanoptional-
persistentAttributeTypestringoptional-
javaMemberMemberoptional-
associationbooleanoptional-
bindableTypestringoptional-
PluralAttributeObjectObjectObject
nametyperequireddescriptionexample
elementTypeTypeObjectoptional-
collectionTypestringoptional-
namestringoptional-
declaringTypeManagedTypeObjectoptional-
collectionbooleanoptional-
persistentAttributeTypestringoptional-
javaMemberMemberoptional-
associationbooleanoptional-
bindableTypestringoptional-
Member
nametyperequireddescriptionexample
modifiersintegeroptional-
namestringoptional-
syntheticbooleanoptional-
TypeObject
nametyperequireddescriptionexample
persistenceType
Filter
nametyperequireddescriptionexample
valueobjectrequiredValue to search based on type of filter
comparisonstringrequiredThe comparison operator 'lt' or 'gt' for Date type filter
typestringrequiredType of Filter
fieldstringrequiredField name on which filter is to be applied


EntityData
nametyperequireddescriptionexample
entityIdintegerrequiredId of Entity
versionintegerrequiredVersionId of Entity
RqFolderArchiveRequestDetail
nametyperequireddescriptionexample
rqFolderIDsarray[integer]requiredArray of Requirement Folder Ids
isBulkOperationbooleanoptionalIs from BulkOperation flag
isSingleOperationbooleanoptionalIs single operation
includeRootFolderEntitiesbooleanoptionalRequired to include Root Folder Entities
RqFolderUnarchiveRequestDetail
nametyperequireddescriptionexample
rqFolderIDsarray[integer]requiredArray of Requirement Folder Ids
isBulkOperationbooleanoptionalIs from BulkOperation flag
isSingleOperationbooleanoptionalIs single operation
includeRootFolderEntitiesbooleanoptionalRequired to include Root Folder Entities
UdfFilter
nametyperequireddescriptionexample
typestringrequiredType of Filter
valuestringrequiredValue to search based on type of UDF
udfmIDintegerrequiredUnique Identifier based on project-module-udf-user
fieldstringrequiredName of User Defined Field