Problem/Motivation
After saving settings form, there is no way to confirm that API settings are correct
Proposed resolution
Create a button in settings page, which on click goes to a custom route which tests the `apiHealthStatus` with the api settings saved in the settings form
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | screenshot-drupal10.ddev_.site-2023.05.16-14_32_20.png | 39.3 KB | kpoornima |
| #5 | Screenshot from 2023-05-15 18-59-492.png | 70.65 KB | shiv_sharma |
| #4 | Screenshot from 2023-05-15 19-02-062.png | 69.41 KB | shiv_sharma |
Issue fork nginx_proxy_manager_connector-3359357
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
shiv_sharma commentedComment #4
shiv_sharma commentedAdded screenshot for reference
Comment #5
shiv_sharma commentedComment #6
kpoornima commented@shiv_sharma After testing MR 19 . I have few doubts

1)Only API Base URL field is need for connect to Nginx proxy Manger
2) With out Entering data into Email and password filed and clicked on check box of " Validate Connection" getting this message "API Base URL is Connected"
Please refer screenshot
Comment #7
shiv_sharma commentedyes @kpoornima only API Base URL fiels is required to test connection.
return $this->httpClient->request('GET', $api_url)->getBody()->getContents();Comment #8
kpoornima commentedThanks @Shiv_sharma
Comment #9
shiv_sharma commentedComment #10
shiv_sharma commentedComment #11
nishantI have tested the MR19 with drupal 9.5.8,
Php version 8.0.28 and it's working fine for me.
Comment #13
shashikanth171 commentedMerged MR. Thank you, @kpoornima @shiv_sharma @nishant.
@nishant and @shiv_sharma. Please add screenshots for any review wherever it's relevant.