URI description
Squore REST API provides access to Squore data using URI paths.
Using these URIs, a REST client application will send HTTP request to Squore server and parse the JSON response from the server.
Supported operations are standard HTTP methods GET
, PUT
, POST
and DELETE
.
Squore REST API URIs looks like the following:
http://localhost:8180/api/<resource-name>
Where <resource-name>
is the name of the entity you want to retrieve, artefacts, projects, findings, etc…
You can find the list of available entities/resources in the API Viewer page. |
Squore REST API response is returned to the JSON format.
JSON output response for API request
GET /projects
{
"_links": {
"self": "http://localhost:8180/api/projects"
},
"projects": [ {
"_links": {
"self": "http://localhost:8180/api/projects/9"
},
"id": 9,
"name": "Mars",
"ownerId": 2,
"versionId": 14,
"color": -713202,
"status": "PENDING",
"group": "C/",
"creationTime": 1550487011079,
"artefactId": 4433,
"rating": "LEVELE",
"modelUId": "software_analytics"
}
]
}
You will find a response example for each request in the API Viewer page. |