mirror of
https://github.com/pelican-dev/panel.git
synced 2026-07-16 04:03:50 +03:00
Small api docs improvements (#1032)
* update scramble * cleanup application api endpoints * cleanup client api endpoints * fix security schema and make docs homepage nicer * remove duplicate myclabs/deep-copy * style(api-docs): use Blade template and Tailwind for styling * Publish scramble view * Use localStorage theme instead of config * Update routes/docs.php Co-authored-by: Lance Pioch <git@lance.sh> --------- Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com> Co-authored-by: Lance Pioch <git@lance.sh>
This commit is contained in:
@@ -13,6 +13,8 @@ use App\Http\Requests\Api\Client\Account\StoreApiKeyRequest;
|
||||
class ApiKeyController extends ClientApiController
|
||||
{
|
||||
/**
|
||||
* List api keys
|
||||
*
|
||||
* Returns all the API keys that exist for the given client.
|
||||
*/
|
||||
public function index(ClientApiRequest $request): array
|
||||
@@ -23,6 +25,8 @@ class ApiKeyController extends ClientApiController
|
||||
}
|
||||
|
||||
/**
|
||||
* Create api key
|
||||
*
|
||||
* Store a new API key for a user's account.
|
||||
*
|
||||
* @throws \App\Exceptions\DisplayException
|
||||
@@ -50,6 +54,8 @@ class ApiKeyController extends ClientApiController
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete api key
|
||||
*
|
||||
* Deletes a given API key.
|
||||
*/
|
||||
public function delete(ClientApiRequest $request, string $identifier): JsonResponse
|
||||
|
||||
Reference in New Issue
Block a user