Skip to content

Commit

Permalink
Update recipe for datana-gmbh/datapool-api (#1558)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored Nov 24, 2023
1 parent a1fdfa1 commit 4def1d1
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
services:
_defaults:
autowire: true

Datana\Datapool\Api\DatapoolClient:
arguments:
- '%env(DATAPOOL_API_BASE_URI)%'
- '%env(DATAPOOL_API_USERNAME)%'
- '%env(DATAPOOL_API_PASSWORD)%'

Datana\Datapool\Api\AktenApi: null
Datana\Datapool\Api\AktenApiInterface: '@Datana\Datapool\Api\AktenApi'

Datana\Datapool\Api\AktenEventLogApi: null
Datana\Datapool\Api\NullAktenEventLogApi: null

Datana\Datapool\Api\AktenzeichenApi: null
Datana\Datapool\Api\FakeAktenzeichenApi: null

Datana\Datapool\Api\ChatProtocolApi: null
Datana\Datapool\Api\NullChatProtocolApi: null

Datana\Datapool\Api\SystemEventLogApi: null
Datana\Datapool\Api\NullSystemEventLogApi: null

Datana\Datapool\Api\KnowledgeToolsApi: null
Datana\Datapool\Api\KnowledgeToolsApiInterface: '@Datana\Datapool\Api\KnowledgeToolsApi'

when@prod:
services:
Datana\Datapool\Api\AktenEventLogApiInterface: '@Datana\Datapool\Api\AktenEventLogApi'
Datana\Datapool\Api\AktenzeichenApiInterface: '@Datana\Datapool\Api\AktenzeichenApi'
Datana\Datapool\Api\ChatProtocolApiInterface: '@Datana\Datapool\Api\ChatProtocolApi'
Datana\Datapool\Api\SystemEventLogApiInterface: '@Datana\Datapool\Api\SystemEventLogApi'

when@dev:
services:
Datana\Datapool\Api\AktenEventLogApiInterface: '@Datana\Datapool\Api\NullAktenEventLogApi'
Datana\Datapool\Api\AktenzeichenApiInterface: '@Datana\Datapool\Api\FakeAktenzeichenApi'
Datana\Datapool\Api\ChatProtocolApiInterface: '@Datana\Datapool\Api\NullChatProtocolApi'
Datana\Datapool\Api\SystemEventLogApiInterface: '@Datana\Datapool\Api\NullSystemEventLogApi'

when@test:
services:
Datana\Datapool\Api\AktenEventLogApiInterface: '@Datana\Datapool\Api\NullAktenEventLogApi'
Datana\Datapool\Api\AktenzeichenApiInterface: '@Datana\Datapool\Api\FakeAktenzeichenApi'
Datana\Datapool\Api\ChatProtocolApiInterface: '@Datana\Datapool\Api\NullChatProtocolApi'
Datana\Datapool\Api\SystemEventLogApiInterface: '@Datana\Datapool\Api\NullSystemEventLogApi'
10 changes: 10 additions & 0 deletions datana-gmbh/datapool-api/3.16/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"DATAPOOL_API_BASE_URI": "",
"DATAPOOL_API_USERNAME": "",
"DATAPOOL_API_PASSWORD": ""
}
}

0 comments on commit 4def1d1

Please sign in to comment.