Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Generate new API spec

Tomas Valentafe7c3ca19b3d
diff --git a/api-service/playground/swagger.json b/api-service/playground/swagger.json
index 8fd020b95..dc246abc5 100644
--- a/api-service/playground/swagger.json
+++ b/api-service/playground/swagger.json
@@ -123,11 +123,15 @@
"$ref": "#/components/schemas/OutStdoutResponse"
},
"type": "array"
+ },
+ "processID": {
+ "type": "string"
}
},
"required": [
"stderr",
- "stdout"
+ "stdout",
+ "processID"
],
"type": "object",
"additionalProperties": false
@@ -357,7 +361,7 @@
},
"/sessions/{id}/process": {
"post": {
- "operationId": "RunProcess",
+ "operationId": "StartProcess",
"responses": {
"200": {
"description": "Ok",
@@ -379,6 +383,14 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "in": "query",
+ "name": "wait",
+ "required": true,
+ "schema": {
+ "type": "boolean"
+ }
}
],
"requestBody": {
@@ -393,6 +405,124 @@
}
}
},
+ "/sessions/{id}/process/{processID}": {
+ "delete": {
+ "operationId": "StopProcess",
+ "responses": {
+ "204": {
+ "description": "No content"
+ }
+ },
+ "security": [],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "id",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "processID",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ]
+ },
+ "get": {
+ "operationId": "GetProcess",
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RunProcessResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "id",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "processID",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "wait",
+ "required": true,
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ ]
+ }
+ },
+ "/sessions/{id}/process/{processID}/stdin": {
+ "post": {
+ "operationId": "WriteProcessStdin",
+ "responses": {
+ "204": {
+ "description": "No content"
+ }
+ },
+ "security": [],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "id",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "processID",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "stdin": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "stdin"
+ ],
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
"/sessions": {
"post": {
"operationId": "CreateSessions",