An open API service indexing awesome lists of open source software.

https://github.com/polymathuniversata/airbnb_clone_v2


https://github.com/polymathuniversata/airbnb_clone_v2

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# HBNB

This is the console /command interpreter for the ALX Airbnb clone project. The console can be used to store objects in and retrieve objects from a JSON.

### Supported classes:
* BaseModel
* User
* State
* City
* Amenity
* Place
* Review

### Commands:
* create - create an object
* show - show an object (based on id)
* destroy - destroy an object
* all - show all objects, of one type or all types
* quit/EOF - quit the console
* help - see descriptions of commands

To start, navigate to the project folder and enter `./console.py` in the shell.

#### Create
`create `
Ex:
`create BaseModel`

#### Show
`show `
Ex:
`show User my_id`

#### Destroy
`destroy `
Ex:
`destroy Place my_place_id`

#### All
`all` or `all `
Ex:
`all` or `all State`

#### Quit
`quit` or `EOF`

#### Help
`help` or `help `
Ex:
`help` or `help quit`

Additionally, the console supports `.()` syntax.
Ex:
`City.show(my_city_id)`