Repository implementation for Orbit Templates via HTTP
npm install @rocketmakers/orbit-template-http-repository@rocketmakers/orbit-template-http-repositoryWe have setup an example repo to serve as a demonstration and for testing purposes.
When using @rocketmakers/orbit-template-http-repository there are two options to register service classes with your ioc framework.
Option #1:
If you only want to register individual classes as needed, you can bootstrap repositories as you would with any other class.
Option #2:
You can bootstrap template http repository classes using the exposed registerTemplateRepositoryIoC() function by following the steps below.
``typescript
// Register core types and services from @rocketmakers/orbit-core
registerCoreIoC();
// Register types and repository classes from @rocketmakers/orbit-template-http-repository
registerTemplateRepositoryIoC({ rootUrl, serviceName });
`
_N.B. the format for the provided rootUrl should be https://. For example: https://gitlab.com/rocketmakers/spike-template-source/raw/master`_
Hosted docs covering types, interfaces and all repository class/method signatures within this package can be found using the link below:
Source code for this package can be found using the link below:
Contributing docs can be found in the README.md