curl -X POST http://localhost:8000/api/v1/projects/saas-platform/environments \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"name": "testing",
"environment": "custom",
"git_branch": "testing",
"env_vars": {"NODE_ENV": "test"},
"cli_profiles": [
{"tool": "gh", "account": "test-bot", "status": "connected"}
]
}'
Crear un nuevo entorno con CLI profiles para un proyecto.
curl -X POST http://localhost:8000/api/v1/projects/saas-platform/environments \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"name": "testing",
"environment": "custom",
"git_branch": "testing",
"env_vars": {"NODE_ENV": "test"},
"cli_profiles": [
{"tool": "gh", "account": "test-bot", "status": "connected"}
]
}'
development, staging, production).development, staging, production, custom.curl -X POST http://localhost:8000/api/v1/projects/saas-platform/environments \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"name": "testing",
"environment": "custom",
"git_branch": "testing",
"env_vars": {"NODE_ENV": "test"},
"cli_profiles": [
{"tool": "gh", "account": "test-bot", "status": "connected"}
]
}'