Anchor | ||||
---|---|---|---|---|
|
...
GET (Using Query Parameters)
This GET service will return a list of Project Streams from the specified project in the form of JSON objects based on the query parameter streamname. Project Streams are only returned if they match all of the specified query parameters and belong to the corresponding Project. If no query parameters are given this request will return the entire list of Streams within the specified Project.
Info | ||
---|---|---|
| ||
http://host:port/flexdeploy/rest/project/{projectid}/stream? Append the following character sequences to the above URL to specify Query parameters.Use '&' between successive query parameters:namestreamName={namestreamName} Examples:To search by code only:http://host:port/flexdeploy/rest/project/{projectid}/stream?namestreamName={name} |
Tip |
---|
The query parameters are not case sensitive. Searching by name=NAME is the same as searching by name=name. |
...
Parameter | Type | Required | Description |
---|---|---|---|
projectId | URL | Yes | This is a URL path parameter for the Project Id which specifies the project which will be queried for Streams. |
Name streamName | URL | No | This is a URL query parameter for the name which is used to search the Streams of the queried Project. |
Response Codes
HTTP Code | Description |
---|---|
200 | Project Stream found and returned |
400 | Bad request |
401 | Unauthorized |
404 | Project with specified not found |
500 | Unexpected internal server error |
...
Code Block | ||||
---|---|---|---|---|
| ||||
[ { "description": "PUTted", "streamName": "PATCHStream1", "isActive": true, "streamId": 10003, "attribute2": "two", "versionSyntaxScript": "\"1.0.\" + SequenceNumber", "attribute3": "three", "attribute1": "PATCHoneStotle" }, { "description": "123", "streamName": "PostStream1", "isActive": true, "streamId": 10201, "attribute2": "2", "versionSyntaxScript": "\"1.0.\" + SequenceNumber", "attribute3": "3", "attribute1": "1" }, { "description": "123", "streamName": "Stream2", "isActive": true, "streamId": 10004, "attribute2": "2", "versionSyntaxScript": "\"1.0.\" + SequenceNumber", "attribute3": "3", "attribute1": "1" }, { "description": "123", "streamName": "Stream4", "isActive": true, "streamId": 10101, "attribute2": "2", "versionSyntaxScript": "\"1.0.\" + SequenceNumber", "attribute3": "3", "attribute1": "1" }, { "description": "123", "streamName": "Stream5", "isActive": true, "streamId": 10102, "attribute2": "2", "versionSyntaxScript": "\"1.0.\" + SequenceNumber", "attribute3": "3", "attribute1": "1" } ] |
When we run a GET request at the following URL
http://host:port/flexdeploy/rest/project/{projectid}/stream?namestreamName=Stream5
The GET request would return the following JSON Project Stream object
Code Block | ||||
---|---|---|---|---|
| ||||
{ "description": "123", "streamName": "Stream5", "isActive": true, "streamId": 10102, "attribute2": "2", "versionSyntaxScript": "\"1.0.\" + SequenceNumber", "attribute3": "3", "attribute1": "1" } |
...
PATCH
This PATCH service will update an existing Project Stream with the information passed through a JSON object. If an attribute of the JSON is null it will not be updated in the Project Stream.
Info | ||
---|---|---|
| ||
http://host:port/flexdeploy/rest/project/{projectid}/stream/{streamid} |
...