Skip to content

Commit

Permalink
Before Scribe installation
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-introini committed Jan 2, 2024
1 parent 7514921 commit f64e2a7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 87 deletions.
80 changes: 0 additions & 80 deletions OpenAPI.json

This file was deleted.

6 changes: 0 additions & 6 deletions app/Http/Controllers/Api/UrlApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Throwable;
use Vyuldashev\LaravelOpenApi\Attributes as OpenApi;

#[OpenApi\PathItem]
class UrlApiController extends Controller
{
use BaseApiResponse;
Expand All @@ -24,7 +23,6 @@ class UrlApiController extends Controller
*
* Get all Urls associated to logged user, with usage count and last 100 calls
*/
#[OpenApi\Operation]
public function index(Request $request)
{
return UrlResource::collection(
Expand All @@ -37,7 +35,6 @@ public function index(Request $request)
*
* Create a new Url with short-url associated to logge-in user
*/
#[OpenApi\Operation]
public function store(UrlRequest $request)
{
$url = Url::create([
Expand All @@ -54,7 +51,6 @@ public function store(UrlRequest $request)
*
* Update a single Url associated to the user
*/
#[OpenApi\Operation]
public function update(UrlRequest $request, Url $url)
{
if (!$this->checkCorrectUser($url)) {
Expand All @@ -72,7 +68,6 @@ public function update(UrlRequest $request, Url $url)
*
* Delete a single Url associated to the user
*/
#[OpenApi\Operation]
public function destroy(Url $url)
{
if (!$this->checkCorrectUser($url)) {
Expand All @@ -97,7 +92,6 @@ public function destroy(Url $url)
* @param Url $url
* @return UrlResource|JsonResponse
*/
#[OpenApi\Operation]
public function show(Url $url)
{
if (!$this->checkCorrectUser($url)) {
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"filament/upgrade": "^3.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
Expand Down

0 comments on commit f64e2a7

Please sign in to comment.