No description
				
			
		
				Merge into master 1. All source code files share etcd client inside **config.py** 2. Make use of fact that Python 3 classes implicitly inherits from **object** class https://stackoverflow.com/questions/15374857/should-all-python-classes-extend-object/15374884 See merge request ungleich-public/ucloud-api!1  | 
			||
|---|---|---|
| .gitignore | ||
| .gitmodules | ||
| common_fields.py | ||
| config.py | ||
| create_image_store.py | ||
| helper.py | ||
| main.py | ||
| Pipfile | ||
| README.md | ||
| schemas.py | ||
| specs_parser.py | ||
ucloud-api
Installation
Make sure you have Python >= 3.6 and Pipenv installed.
- Clone the repository and 
cdinto it. - Run the following commands
pipenv installpipenv shellpython 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
{
	"name": "username",
	"realm": "user realm",
	"seed": "user seed",
	"specs": {
		"cpu": 16,
		"ram": 256,
		"hdd": "2TB",
		"sdd": "256GB"
	}
}