Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RestResource::uri() #30

Merged
merged 1 commit into from
Sep 30, 2022
Merged

Add RestResource::uri() #30

merged 1 commit into from
Sep 30, 2022

Conversation

thekid
Copy link
Member

@thekid thekid commented Sep 30, 2022

This pull request adds a uri() method to fetch the resolved URI for a given resource.

$endpoint= new Endpoint('https://api.example.com');
$resource= $endpoint->resource('/users/{0}/avatar/{1}', [6100, 'self']);

$resource->uri(); // util.URI<https://api.example.com/users/6100/avatar/self>

@thekid thekid added the enhancement New feature or request label Sep 30, 2022
@thekid thekid merged commit 1328d5f into master Sep 30, 2022
@thekid thekid deleted the feature/resource-uri branch September 30, 2022 14:07
@thekid
Copy link
Member Author

thekid commented Sep 30, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant