Created
March 12, 2024 14:23
-
-
Save nezaniel/8cb2b9ca332ff5321b2770c247df3925 to your computer and use it in GitHub Desktop.
HTTP Endpoint Implementation
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
<?php | |
declare(strict_types=1); | |
#[Path('/my/endpoint')] | |
final class MyEndpoint extends HttpEndpoint | |
{ | |
private function get( | |
#[Parameter(ParameterLocation::LOCATION_QUERY] | |
MyParameter $parameter | |
): MyResponse { | |
return new MyResponse(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment