Skip to content

Commit fdff706

Browse files
committed
chore: remove trait methods
Signed-off-by: Matias Perrone <github@matiasperrone.com>
1 parent 3fadd50 commit fdff706

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed

app/Http/Controllers/Apis/Protected/Summit/OAuth2SummitSponsorshipTypeApiController.php

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
* limitations under the License.
1616
**/
1717

18-
use App\Models\Foundation\Main\IGroup;
1918
use App\Models\Foundation\Summit\Repositories\ISummitSponsorshipTypeRepository;
2019
use App\ModelSerializers\SerializerUtils;
21-
use App\Security\SummitScopes;
2220
use App\Services\Model\ISummitSponsorshipTypeService;
2321
use Illuminate\Http\Request as LaravelRequest;
2422
use Illuminate\Http\Response;
@@ -100,6 +98,9 @@ public function __construct
10098
new OA\Parameter(name: 'id', in: 'path', required: true, description: 'Summit ID', schema: new OA\Schema(type: 'integer')),
10199
new OA\Parameter(name: 'filter', in: 'query', description: 'Filter by name, label, or size (name=@value, label==value, size=@value)', schema: new OA\Schema(type: 'string')),
102100
new OA\Parameter(name: 'order', in: 'query', description: 'Order by: +/-id, +/-name, +/-order, +/-label, +/-size', schema: new OA\Schema(type: 'string')),
101+
new OA\Parameter(name: 'expand', in: 'query', required: false, description: 'Expand related entities', schema: new OA\Schema(type: 'string')),
102+
new OA\Parameter(name: 'fields', in: 'query', required: false, description: 'Fields to return (comma-separated)', schema: new OA\Schema(type: 'string')),
103+
new OA\Parameter(name: 'relations', in: 'query', required: false, description: 'Related entities to include (comma-separated)', schema: new OA\Schema(type: 'string')),
103104
],
104105
responses: [
105106
new OA\Response(
@@ -114,10 +115,6 @@ public function __construct
114115
new OA\Response(response: Response::HTTP_INTERNAL_SERVER_ERROR, description: "Server Error"),
115116
]
116117
)]
117-
public function getAllBySummit($summit_id)
118-
{
119-
return parent::getAllBySummit($summit_id);
120-
}
121118

122119
#[OA\Post(
123120
path: '/api/v1/summits/{id}/sponsorships-types',
@@ -159,10 +156,6 @@ public function getAllBySummit($summit_id)
159156
new OA\Response(response: Response::HTTP_INTERNAL_SERVER_ERROR, description: "Server Error"),
160157
]
161158
)]
162-
public function add($summit_id)
163-
{
164-
return parent::add($summit_id);
165-
}
166159

167160
#[OA\Get(
168161
path: '/api/v1/summits/{id}/sponsorships-types/{type_id}',
@@ -187,6 +180,9 @@ public function add($summit_id)
187180
parameters: [
188181
new OA\Parameter(name: 'id', in: 'path', required: true, description: 'Summit ID', schema: new OA\Schema(type: 'integer')),
189182
new OA\Parameter(name: 'type_id', in: 'path', required: true, description: 'Sponsorship Type ID', schema: new OA\Schema(type: 'integer')),
183+
new OA\Parameter(name: 'expand', in: 'query', required: false, description: 'Expand related entities', schema: new OA\Schema(type: 'string')),
184+
new OA\Parameter(name: 'fields', in: 'query', required: false, description: 'Fields to return (comma-separated)', schema: new OA\Schema(type: 'string')),
185+
new OA\Parameter(name: 'relations', in: 'query', required: false, description: 'Related entities to include (comma-separated)', schema: new OA\Schema(type: 'string')),
190186
],
191187
responses: [
192188
new OA\Response(
@@ -201,10 +197,6 @@ public function add($summit_id)
201197
new OA\Response(response: Response::HTTP_INTERNAL_SERVER_ERROR, description: "Server Error"),
202198
]
203199
)]
204-
public function get($summit_id, $type_id)
205-
{
206-
return parent::get($summit_id, $type_id);
207-
}
208200

209201
#[OA\Put(
210202
path: '/api/v1/summits/{id}/sponsorships-types/{type_id}',
@@ -247,10 +239,6 @@ public function get($summit_id, $type_id)
247239
new OA\Response(response: Response::HTTP_INTERNAL_SERVER_ERROR, description: "Server Error"),
248240
]
249241
)]
250-
public function update($summit_id, $type_id)
251-
{
252-
return parent::update($summit_id, $type_id);
253-
}
254242

255243
#[OA\Delete(
256244
path: '/api/v1/summits/{id}/sponsorships-types/{type_id}',
@@ -284,10 +272,6 @@ public function update($summit_id, $type_id)
284272
new OA\Response(response: Response::HTTP_INTERNAL_SERVER_ERROR, description: "Server Error"),
285273
]
286274
)]
287-
public function delete($summit_id, $type_id)
288-
{
289-
return parent::delete($summit_id, $type_id);
290-
}
291275

292276
/**
293277
* @return array

0 commit comments

Comments
 (0)