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

Command icon 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

shashikanth171 created an issue. See original summary.

shiv_sharma’s picture

Assigned: Unassigned » shiv_sharma

shiv_sharma’s picture

StatusFileSize
new69.41 KB

Added screenshot for reference

shiv_sharma’s picture

Assigned: shiv_sharma » Unassigned
Status: Active » Needs review
Issue tags: +api validation
StatusFileSize
new70.65 KB
kpoornima’s picture

@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
connection

shiv_sharma’s picture

yes @kpoornima only API Base URL fiels is required to test connection.
return $this->httpClient->request('GET', $api_url)->getBody()->getContents();

kpoornima’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @Shiv_sharma

shiv_sharma’s picture

Status: Reviewed & tested by the community » Needs review
shiv_sharma’s picture

Status: Needs review » Reviewed & tested by the community
nishant’s picture

I have tested the MR19 with drupal 9.5.8,
Php version 8.0.28 and it's working fine for me.

  • shashikanth171 committed e1f96abe on 1.x
    Issue #3359357 by Shiv_Sharma, shashikanth171, kpoornima, Nishant: Test...
shashikanth171’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -api validation

Merged MR. Thank you, @kpoornima @shiv_sharma @nishant.

@nishant and @shiv_sharma. Please add screenshots for any review wherever it's relevant.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.