Skip to content

Commit

Permalink
Merge branch 'main' into feat/wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Mar 27, 2024
2 parents 78037a2 + bde824e commit f041164
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions operate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,16 @@ async def _get_service_deployment(request: Request) -> JSONResponse:
).deployment.json
)

@app.get("/api/services/{service}/deployment")
@with_retries
async def _get_service_deployment(request: Request) -> JSONResponse:
"""Create a service."""
return JSONResponse(
content=operate.service_manager.create_or_load(
request.path_params["service"],
).deployment.json
)

@app.post("/api/services/{service}/deployment/build")
@with_retries
async def _build_service_locally(request: Request) -> JSONResponse:
Expand Down

0 comments on commit f041164

Please sign in to comment.