[PR #159] [MERGED] Add api for database hosts #612

Closed
opened 2026-02-05 17:49:11 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/159
Author: @Boy132
Created: 4/26/2024
Status: Merged
Merged: 5/15/2024
Merged by: @iamkubi

Base: mainHead: feature/database-host-api


📝 Commits (10+)

  • 8f188d9 add application api endpoints for database hosts
  • bd09176 run pint
  • f0c8029 forgot to lint this one
  • b9fabfb Update app/Http/Controllers/Api/Application/DatabaseHosts/DatabaseHostController.php
  • 6e0d29c Update routes/api-application.php
  • 6f82c4f rename all "databaseHost" to "database_host"
  • a5dc295 Merge branch 'pelican-dev:main' into feature/database-host-api
  • b16d907 Merge branch 'pelican-dev:main' into feature/database-host-api
  • c0a7d3b Merge branch 'pelican-dev:main' into feature/database-host-api
  • d252031 Merge branch 'pelican-dev:main' into feature/database-host-api

📊 Changes

7 files changed (+199 additions, -0 deletions)

View changed files

app/Http/Controllers/Api/Application/DatabaseHosts/DatabaseHostController.php (+100 -0)
app/Http/Requests/Api/Application/DatabaseHosts/DeleteDatabaseHostRequest.php (+13 -0)
app/Http/Requests/Api/Application/DatabaseHosts/GetDatabaseHostRequest.php (+13 -0)
app/Http/Requests/Api/Application/DatabaseHosts/StoreDatabaseHostRequest.php (+19 -0)
app/Http/Requests/Api/Application/DatabaseHosts/UpdateDatabaseHostRequest.php (+16 -0)
📝 app/Transformers/Api/Application/DatabaseHostTransformer.php (+19 -0)
📝 routes/api-application.php (+19 -0)

📄 Description

Adds the following new endpoints to the application api:

Endpoint Description
GET /api/application/database-hosts list all database hosts
GET /api/application/database-hosts/{database_host} view a specific database host
POST /api/application/database-hosts create a database host
PATCH /api/application/database-hosts/{database_host} update a specific database host
DELETE /api/application/database-hosts/{database_host} delete a specific database host

Also adds a node include parameter to the database host transformer.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/159 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 4/26/2024 **Status:** ✅ Merged **Merged:** 5/15/2024 **Merged by:** [@iamkubi](https://github.com/iamkubi) **Base:** `main` ← **Head:** `feature/database-host-api` --- ### 📝 Commits (10+) - [`8f188d9`](https://github.com/pelican-dev/panel/commit/8f188d95351f2e736e8e76a1e3e7e0e4ec2c5cdb) add application api endpoints for database hosts - [`bd09176`](https://github.com/pelican-dev/panel/commit/bd09176f956194393495c17bd395934eddddcbce) run pint - [`f0c8029`](https://github.com/pelican-dev/panel/commit/f0c80294a4c6e583fc87ed791be20189b83d1732) forgot to lint this one - [`b9fabfb`](https://github.com/pelican-dev/panel/commit/b9fabfb59c6dc5c073da4998f8bac2e12cedd19b) Update app/Http/Controllers/Api/Application/DatabaseHosts/DatabaseHostController.php - [`6e0d29c`](https://github.com/pelican-dev/panel/commit/6e0d29c56bdc0c68ebf2af88935dbaceb4766b1b) Update routes/api-application.php - [`6f82c4f`](https://github.com/pelican-dev/panel/commit/6f82c4f89125528394809b7496578cc2fbc7c5e6) rename all "databaseHost" to "database_host" - [`a5dc295`](https://github.com/pelican-dev/panel/commit/a5dc29589c2ca2b0c908e4b27ff5ecd1dc23d741) Merge branch 'pelican-dev:main' into feature/database-host-api - [`b16d907`](https://github.com/pelican-dev/panel/commit/b16d907ef924630a50a3fefa82bd1e70c0340df1) Merge branch 'pelican-dev:main' into feature/database-host-api - [`c0a7d3b`](https://github.com/pelican-dev/panel/commit/c0a7d3b3d397c0ac6b1739a8f55c2e123ba8c5d6) Merge branch 'pelican-dev:main' into feature/database-host-api - [`d252031`](https://github.com/pelican-dev/panel/commit/d2520319ad2c160228ecd6046c1f2b106bf1c78b) Merge branch 'pelican-dev:main' into feature/database-host-api ### 📊 Changes **7 files changed** (+199 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `app/Http/Controllers/Api/Application/DatabaseHosts/DatabaseHostController.php` (+100 -0) ➕ `app/Http/Requests/Api/Application/DatabaseHosts/DeleteDatabaseHostRequest.php` (+13 -0) ➕ `app/Http/Requests/Api/Application/DatabaseHosts/GetDatabaseHostRequest.php` (+13 -0) ➕ `app/Http/Requests/Api/Application/DatabaseHosts/StoreDatabaseHostRequest.php` (+19 -0) ➕ `app/Http/Requests/Api/Application/DatabaseHosts/UpdateDatabaseHostRequest.php` (+16 -0) 📝 `app/Transformers/Api/Application/DatabaseHostTransformer.php` (+19 -0) 📝 `routes/api-application.php` (+19 -0) </details> ### 📄 Description Adds the following new endpoints to the application api: | | Endpoint | Description | | - | - | - | | GET | /api/application/database-hosts | list all database hosts | | GET | /api/application/database-hosts/{database_host} | view a specific database host | | POST | /api/application/database-hosts | create a database host | | PATCH | /api/application/database-hosts/{database_host} | update a specific database host | | DELETE | /api/application/database-hosts/{database_host} | delete a specific database host | Also adds a _node_ include parameter to the database host transformer. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 17:49:11 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#612