stub functionality for individual workspaces with projects

This commit is contained in:
dandds
2018-07-26 13:34:46 -04:00
parent 34a1743b7a
commit c594d88804
5 changed files with 126 additions and 16 deletions

67
atst/domain/workspaces.py Normal file
View File

@@ -0,0 +1,67 @@
import tornado.gen
class Projects(object):
def __init__(self):
pass
def create(self, creator_id, body):
pass
def get(self, project_id):
pass
def get_many(self, workspace_id):
return [
{
"id": "187c9bea-9541-45d7-801f-cf8e7a642e93",
"name": "Code.mil",
"environments": [
{
"id": "b1154fdd-31c9-437f-b580-2e4d757de5cb",
"name": "Development",
},
{
"id": "b1e2077a-6a3d-4e7f-a80c-bf1143433adf",
"name": "Sandbox"
},
{
"id": "8ea95eea-7cc0-4500-adf7-8a13eaa6b752",
"name": "production",
},
],
},
{
"id": "ececfd73-b19d-45aa-9199-a950ba2c7269",
"name": "Digital Dojo",
"environments": [
{
"id": "f56167cb-ca3d-4e29-8b60-91052957a118",
"name": "Development",
},
{
"id": "7c18689c-5b77-4b68-8d64-d4d8a830bf47",
"name": "production",
},
],
},
]
def update(self, request_id, request_delta):
pass
class Members(object):
def __init__(self):
pass
def create(self, creator_id, body):
pass
def get(self, request_id):
pass
def update(self, request_id, request_delta):
pass