This commit is contained in:
ahmadbilalkhalid 2019-09-12 20:55:25 +05:00
commit ec032ed0db
9 changed files with 544 additions and 103 deletions

View file

@ -3,31 +3,10 @@
## Installation
**Make sure you have Python >= 3.6 and Pipenv installed.**
**Make sure you have Python >= 3.5 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"
}
}
```