Services do not reference an entity but they trigger a transverse feature.

Indexation

Indexing is a service that indexes requirements, test cases and campaigns. Only administrators can trigger an indexation.

This feature will no longer be available beyond squashTm version 1.19

All index

A POST to /services/index-all indexes campaigns, requirements and test cases .

HTTP request

POST /api/rest/latest/services/index-all HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080

HTTP response

HTTP/1.1 200 OK

Index campaigns

A POST to /services/index-campaigns indexes campaigns.

HTTP request

POST /api/rest/latest/services/index-campaigns HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080

HTTP response

HTTP/1.1 200 OK

Index requirements

A POST to /services/index-requirements indexes requirements.

HTTP request

POST /api/rest/latest/services/index-requirements HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080

HTTP response

HTTP/1.1 200 OK

Index test cases

A POST to /services/index-testcases indexes test cases.

HTTP request

POST /api/rest/latest/services/index-testcases HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080

HTTP response

HTTP/1.1 200 OK

Refresh

A Get to /services/refresh returns the progress of indexing.

HTTP request

GET /api/rest/latest/services/refresh HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080

HTTP response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 452

{
  "progressPercentage" : 100,
  "writtenEntities" : 0,
  "totalEntities" : 0,
  "progressPercentageForTestcases" : 100,
  "writtenEntitiesForTestcases" : 0,
  "totalEntitiesForTestcases" : 0,
  "progressPercentageForRequirementVersions" : 100,
  "writtenEntitiesForRequirementVersions" : 0,
  "totalEntitiesForRequirementVersions" : 0,
  "progressPercentageForCampaigns" : 100,
  "writtenEntitiesForCampaigns" : 0,
  "totalEntitiesForCampaigns" : 0
}