Skip to content
This repository was archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
adding initial pipeline code
Browse files Browse the repository at this point in the history
  • Loading branch information
codyde committed May 24, 2019
1 parent 59e6fa8 commit 288bd9a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions caspyr/codestream.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,16 @@ def endpoint_delete(session, id):

@staticmethod
def pipeline_list(session):
pass

uri = '/pipeline/api/pipelines'
r = session._request(f'{session.baseurl}{uri}')['links']
jsonData = []
for i in r:
entry = {}
entry['selflink'] = i
entry['name'] = session._request(f'{session.baseurl}{i}')['name']
jsonData.append(entry)
return jsonData

@staticmethod
def pipeline_delete(session, id):
pass
Expand Down

0 comments on commit 288bd9a

Please sign in to comment.