============================
Description of what API calls are made when user performs UI actions.
POST /contexts
request:
name: uuid()
owner:
github: user_github_id
response:
new context object
POST /contexts/:new_context_id/versions
request: empty
response:
new context version object
POST /builds
request:
contextVersions: [:new_context_version_id]
owner:
github: user_github_id
response:
new build object
POST /contexts/:new_context_id/versions/:new_context_version_id/appCodeversions
request:
branch: branch name
commit: commit
repo: full repo name (owner/name)
response:
new app version code
PUT /contexts/:new_context_id/versions/:new_context_version_id/infraCodeVersion/actions/copy?sourceInfraCodeVersion=5452c94e72fd5a2400e72430
GET /contexts/:new_context_id/versions/:new_context_version_id/files
GET /contexts/:new_context_id/versions/:new_context_version_id/files/Dockerfile
PATCH /contexts/:new_context_id/versions/:new_context_version_id/files/Dockerfile
POST /builds/:new_build_id/actions/build
request:
message: 'Initial Build'
response:
updated build object
POST /instances
request:
build: 'Initial Build'
name: instance name
owner:
github: user_github_id
response:
new instance object
PATCH /instances/:id
request:
name: new name
response:
update instance object
POST /builds/:build_id/actions/copy?deep=true
request: empty
response:
new build object
// change docker file
PATCH /contexts/:context_id/versions/:context_version_id/files/Dockerfile
request:
body: docker file content
response:
file object
// build a build
POST /builds/:new_build_id/actions/build
request:
message: "Manual build"
response:
build object
// poll container until found. Containers will always have one container!
GET /instances/:instance_id/containers
response: [new container object]
// patch instance with a new build
PATCH /instances/:instance_id/
request:
build: build_id
response:
instance object
PUT /instances/:instance_id/actions/stop
PUT /instances/:instance_id/actions/stop
POST /instances/:instance_id/actions/copy
request:
name: forked box name
response:
instance object
// create new context verison
POST /contexts/:context_id/versions
request:
infraCodeVersion: id of existing infracode version
response:
new contex version withou appCode
// create new app code version
POST /contexts/:context_id/versions/:created_context_version_id/appCodeVersions/
request:
branch:
commit:
repo:
response:
new app code version
// create new build
POST /builds
request:
owner: github owner data
contextVersions: [context version id]
response:
new build object
// build a build
POST /builds/:new_build_id/actions/build
request:
message: "Update application code version(s)"
response:
build object
// patch instance with a new build
PATCH /instances/:instance_id/
request:
build: build_id
response:
instance object