Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 3 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Zop is a comprehensive tool for managing cloud infrastructure. It consists of th
Run the following command to pull and start the Docker image for the zop-api:

```bash
docker run -d -p 8000:8000 --name zop-api zopdev/zop-api:v0.0.1
docker run -d -p 8000:8000 --name zop-api zopdev/zop-api:v0.0.2
```

#### zop-ui
Run the following command to pull and start the Docker image for the zop-ui:
```bash
docker run -d -p 3000:3000 -e NEXT_PUBLIC_API_BASE_URL='http://localhost:8000' --name zop-ui zopdev/zop-ui:v0.0.1
docker run -d -p 3000:3000 -e NEXT_PUBLIC_API_BASE_URL='http://localhost:8000' --name zop-ui zopdev/zop-ui:v0.0.2
```

> **Note:** The environment variable `NEXT_PUBLIC_API_BASE_URL` is used by zop-ui to connect to the zop-api. Ensure that the value matches the API's running base URL.
Expand All @@ -43,44 +43,4 @@ Run the following command install zop-cli:

### zop-api

#### Endpoints

1. **POST /cloud-accounts**
Add a new cloud account.

- **Request Body**
```json
{
"name": "zop cloud Account",
"provider": "gcp",
"credentials": {}
}
```

- **Description**
Use this endpoint to add a cloud account by specifying its name, provider, and credentials.

---

2. **GET /cloud-accounts**
List all cloud accounts.

- **Sample Response**
```json
{
"data": [
{
"name": "zop cloud Account",
"id": 1,
"provider": "gcp",
"providerId": "caramel-park-443607-n22wqe5331",
"providerDetails": null,
"createdAt": "2024-12-09T09:48:27Z",
"updatedAt": "2024-12-09T09:48:27Z"
}
]
}
```

- **Description**
This endpoint returns a list of all registered cloud accounts with their details.
swagger endpoint - `/.well-known/swagger`
Loading