Is it possible to use Konstruct with a custom / service api?
I'm adding an integration to Fresh Desk onto my site, so it's a very simple api which in a lot of ways is similar to a basic database table structure.
Would it be possible to consume this service with Konstruct in place of the database?
Top level you can implement your own repository and tell Konstrukt to use that instead and so this way you can work with any data source, not just the database.
Konstruct with custom service / api
Is it possible to use Konstruct with a custom / service api?
I'm adding an integration to Fresh Desk onto my site, so it's a very simple api which in a lot of ways is similar to a basic database table structure. Would it be possible to consume this service with Konstruct in place of the database?
Hey Aaron,
Yes you can. Take a look at repositories documentation here https://docs.getkonstrukt.net/advanced/repositories
Top level you can implement your own repository and tell Konstrukt to use that instead and so this way you can work with any data source, not just the database.
Hope this helps
Matt
Perfect, just what I needed!
Thanks Matt!
One more question Matt... This ticket system uses long for the ids and not int...
Is it possible to change the repository to use long?
Hey Aaron,
Yup, you'll want to change the type of the second generic argument passed to the
KonstruktRepository<TEntity, TId>
base class tolong
.Matt
Perfect!
That was easy 👍
I aim to please 😁
is working on a reply...