Module: Rxer::Api::V1::Db
- Defined in:
- lib/rxer/api/v1/db.rb
Overview
Working with /db endpoint
Instance Method Summary collapse
Instance Method Details
#create_db(db_name:) ⇒ Object
12 13 14 |
# File 'lib/rxer/api/v1/db.rb', line 12 def create_db(db_name:) post(endpoint: "/api/v1/db", payload: { name: db_name }) end |
#drop_db(db_name:) ⇒ Object
16 17 18 |
# File 'lib/rxer/api/v1/db.rb', line 16 def drop_db(db_name:) delete(endpoint: "/api/v1/db/#{db_name}", payload: { name: db_name }) end |
#list_db ⇒ Object
8 9 10 |
# File 'lib/rxer/api/v1/db.rb', line 8 def list_db get(endpoint: "/api/v1/db") end |