Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
Top
Top

...

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
titleAPI URLs

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
projectIdURLYesThis is a URL path parameter for the Project Id which specifies the project which will be queried for Streams.
NamestreamNameURLNoThis is a URL query parameter for the name which is used to search the Streams of the queried Project.

Response Codes


HTTP Code
Description
200Project Stream found and returned
400Bad request
401Unauthorized
404Project with specified not found
500Unexpected internal server error


...


Code Block
themeEclipse
titleProject 10002 Streams
[
      {
      "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
themeEclipse
titleProject Stream "Stream5"
{
      "description": "123",
      "streamName": "Stream5",
      "isActive": true,
      "streamId": 10102,
      "attribute2": "2",
      "versionSyntaxScript": "\"1.0.\" + SequenceNumber",
      "attribute3": "3",
      "attribute1": "1"
   }

Back to Top

...

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
titleAPI URL

http://host:port/flexdeploy/rest/project/{projectid}/stream/{streamid}

...