api-platform / api-platform/core
Accept absolute URLs for ApiResource URI template.
未關閉
- 主要語言
- PHP
- 星號
- 2.6k
- 分支
- 980
- 平均合併
- 2 天 5 小時
- 30 天內合併 PR
- 48
描述
**Description**
If the API use a remote API for a relation (with a local database cache), it would be a nice features for IRIs to point to the resource on the remote API:
**Example**
```php
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Get;
#[ApiResource(
uriTemplate: 'https://remote.api/custom/api/brands/{id}',
provider: null,
)]
#[Get]
final readonly class Brand
{
```
With API Platform 4.1.11, this generates `/api/https://remote.api/custom/api/brands/d1d08e37-1234-4567-918c-354b6b210ae1`.
It would be nice to allow it to generate `https://remote.api/custom/api/brands/d1d08e37-1234-4567-918c-354b6b210ae1`
貢獻指南
評估
這個 Issue 還沒有評估資料。