forked from Hounslow-Connect/api
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
5,589 additions
and
4,860 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
app/Docs/Paths/UpdateRequests/UpdateRequestsRejectPath.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace App\Docs\Paths\UpdateRequests; | ||
|
||
use App\Docs\Operations\UpdateRequests\DestroyUpdateRequestOperation; | ||
use GoldSpecDigital\ObjectOrientedOAS\Objects\BaseObject; | ||
use GoldSpecDigital\ObjectOrientedOAS\Objects\Parameter; | ||
use GoldSpecDigital\ObjectOrientedOAS\Objects\PathItem; | ||
use GoldSpecDigital\ObjectOrientedOAS\Objects\Schema; | ||
|
||
class UpdateRequestsRejectPath extends PathItem | ||
{ | ||
/** | ||
* @throws \GoldSpecDigital\ObjectOrientedOAS\Exceptions\InvalidArgumentException | ||
*/ | ||
public static function create(string $objectId = null): BaseObject | ||
{ | ||
return parent::create($objectId) | ||
->route('/update-requests/{update_request}/reject') | ||
->parameters( | ||
Parameter::path() | ||
->name('update_request') | ||
->description('The ID of the update request') | ||
->required() | ||
->schema(Schema::string()->format(Schema::FORMAT_UUID)) | ||
) | ||
->operations( | ||
DestroyUpdateRequestOperation::create() | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
app/Docs/Schemas/UpdateRequest/UpdateRequestRejectSchema.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace App\Docs\Schemas\UpdateRequest; | ||
|
||
use GoldSpecDigital\ObjectOrientedOAS\Objects\BaseObject; | ||
use GoldSpecDigital\ObjectOrientedOAS\Objects\Schema; | ||
|
||
class UpdateRequestRejectSchema extends Schema | ||
{ | ||
public static function create(string $objectId = null): BaseObject | ||
{ | ||
return parent::create($objectId) | ||
->type(static::TYPE_OBJECT) | ||
->required( | ||
'message' | ||
) | ||
->properties( | ||
Schema::string('message'), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.