Skip to content

Instantly share code, notes, and snippets.

@nezaniel
Created March 12, 2024 14:23
Show Gist options
  • Save nezaniel/8cb2b9ca332ff5321b2770c247df3925 to your computer and use it in GitHub Desktop.
Save nezaniel/8cb2b9ca332ff5321b2770c247df3925 to your computer and use it in GitHub Desktop.
HTTP Endpoint Implementation
<?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