Logo
Explore Help
Register Sign In
matt/opnform-host-nginx
1
0
Fork 0
You've already forked opnform-host-nginx
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
1b67cd808b7d6e2ed46f5b839c4781abe14746ba
opnform-host-nginx/api/app/Http/Resources/Zapier/WorkspaceResource.php

20 lines
361 B
PHP
Raw Normal View History

Zapier integration (#491) * create zapier app * install sanctum * move OAuthProviderController * make `api-external` middleware * add zapier endpoints * add tests * token management * zapier event handler * add policy * use `slug` instead of `id` * wip * check policies * change api prefix to `external` * ui tweaks * validate token abilities * open zapier URL * zapier ui tweaks * update zap * Fix linting * Added sample endpoints + minor UI changes * Run PHP code linter --------- Co-authored-by: Julien Nahum <julien@nahum.net>
2024-08-12 02:14:02 -07:00
<?php
namespace App\Http\Resources\Zapier;
use Illuminate\Http\Resources\Json\JsonResource;
/**
* @property \App\Models\Workspace $resource
*/
class WorkspaceResource extends JsonResource
{
public function toArray($request)
{
return [
'id' => $this->resource->id,
'name' => $this->resource->name,
];
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 38ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API