mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-04 02:05:16 +02:00
Added an very basic system to configure info providers
This commit is contained in:
parent
9e3cb4d694
commit
e0301f096f
12 changed files with 689 additions and 0 deletions
17
config/packages/http_client.yaml
Normal file
17
config/packages/http_client.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
framework:
|
||||
http_client:
|
||||
default_options:
|
||||
headers:
|
||||
'User-Agent': 'Part-DB'
|
||||
|
||||
|
||||
scoped_clients:
|
||||
digikey.client:
|
||||
base_uri: 'https://sandbox-api.digikey.com'
|
||||
auth_bearer: '%env(PROVIDER_DIGIKEY_TOKEN)%'
|
||||
headers:
|
||||
X-DIGIKEY-Client-Id: '%env(PROVIDER_DIGIKEY_CLIENT_ID)%'
|
||||
X-DIGIKEY-Locale-Site: 'DE'
|
||||
X-DIGIKEY-Locale-Language: 'de'
|
||||
X-DIGIKEY-Locale-Currency: '%partdb.default_currency%'
|
||||
X-DIGIKEY-Customer-Id: 0
|
Loading…
Add table
Add a link
Reference in a new issue