JSSP Sample Projects
Several sample projects are available from GitHub to help you learn how to create your own service types for the JSSP. The JSONPlaceholder sample is probably the easiest place to start, but you can also look at a couple of MS Graph examples (Mail & SharePoint) as well as an ODatav4 service. Also review the K2-Broker-Core NPM package readme to get familiar with writing a JSSP connector.
All samples were developed using Visual Studio Code and built using NPM/Node.js. You can choose these tools or any tool of your choice as long as the final file is a bundled .js file. For ease of use for these samples however, you should set up your development environment as described in Setting up your development environment before you pull these samples from GitHub.
- K2Documentation.Samples.JavascriptBroker.Template - this is the recommended 'skeleton' project repository to clone when you want to create your own JS service type.
- K2Documentation.Samples.JavascriptBroker.JSONPlaceholder - this is a simple project to use if you want to learn the basics of developing your own JSSP service.
- K2Documentation.Samples.JavascriptBroker.MSGraph-Mail
- K2Documentation.Samples.JavascriptBroker.MSGraph-Sharepoint
- K2Documentation.Samples.JavascriptBroker.OData