fintech-systems / virtualmin-api

A Virtualmin API designed to run standalone or as part of a Laravel Application
MIT License
6 stars 1 forks source link

Make possible to create/delete a domain in virtualmin #17

Closed fabiomontefuscolo closed 2 years ago

fabiomontefuscolo commented 2 years ago

Then we can use something like

$api->createDomain([
    // New virtual server details
    'domain'                 => 'demo.example.com',
    'desc'                   => 'My demo website',
    'pass'                   => '***************',
    'template'               => 'WikiSuite 1',
    'plan'                   => 'WikiSuite 1',

    // Advanced options
    'email'                  => 'contact@example.com',
    'db'                     => 'demo_example_com',

    // Enabled features
    'features-from-plan'     => ''
]))
codecov-commenter commented 2 years ago

Codecov Report

Merging #17 (9c710dc) into main (6944fbe) will not change coverage. The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##              main     #17   +/-   ##
=======================================
  Coverage     0.00%   0.00%           
- Complexity      26      30    +4     
=======================================
  Files            3       3           
  Lines           73      81    +8     
=======================================
- Misses          73      81    +8     
Impacted Files Coverage Δ
src/VirtualminApi.php 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6944fbe...9c710dc. Read the comment docs.

eugenefvdm commented 2 years ago

Thank you so much! I have tagged a new release.