v1 code
This commit is contained in:
commit
1cd8eee616
6 changed files with 326 additions and 0 deletions
33
README.md
Normal file
33
README.md
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# ucloud-api
|
||||
[](https://www.repostatus.org/#wip)
|
||||
|
||||
## Installation
|
||||
|
||||
**Make sure you have Python >= 3.6 and Pipenv installed.**
|
||||
|
||||
1. Clone the repository and `cd` into it.
|
||||
2. Run the following commands
|
||||
- `pipenv install`
|
||||
- `pipenv shell`
|
||||
- `python main.py`
|
||||
|
||||
## Endpoints
|
||||
|
||||
### Create VM
|
||||
To Create VM send a `POST` request at `/vm/create` with JSON body.
|
||||
An Example JSON Request Body is shown below
|
||||
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "username",
|
||||
"realm": "user realm",
|
||||
"seed": "user seed",
|
||||
"specs": {
|
||||
"cpu": 16,
|
||||
"ram": 256,
|
||||
"hdd": "2TB",
|
||||
"sdd": "256GB"
|
||||
}
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue