mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-18 16:49:00 +02:00
Added basic possibilty to create parts based on infoProviders
This commit is contained in:
parent
538476be99
commit
716a56979d
12 changed files with 476 additions and 25 deletions
|
@ -23,6 +23,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Services\InfoProviderSystem\Providers;
|
||||
|
||||
use App\Services\InfoProviderSystem\DTOs\PartDetailDTO;
|
||||
use App\Services\InfoProviderSystem\DTOs\SearchResultDTO;
|
||||
|
||||
interface InfoProviderInterface
|
||||
|
@ -62,6 +63,13 @@ interface InfoProviderInterface
|
|||
*/
|
||||
public function searchByKeyword(string $keyword): array;
|
||||
|
||||
/**
|
||||
* Returns detailed information about the part with the given id
|
||||
* @param string $id
|
||||
* @return PartDetailDTO
|
||||
*/
|
||||
public function getDetails(string $id): PartDetailDTO;
|
||||
|
||||
/**
|
||||
* A list of capabilities this provider supports (which kind of data it can provide).
|
||||
* Not every part have to contain all of these data, but the provider should be able to provide them in general.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue