Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Sage/sageone_api_csharp_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sage Business Cloud Accounting API Sample application (C#) Travis Status

Sample C# project that integrates with Sage Accounting via the Sage Accounting API. This Application uses .NET Core 2.2 and Newtonsoft Json.NET.

Setup

Clone the repo:

git clone git@github.com:Sage/sageone_api_csharp_sample.git

Switch to the project directory to run the subsequent commands:

cd sageone_api_csharp_sample

Run the app locally

switch to the app folder:

cd app

install all dependencies:

dotnet restore

build and run the application:

dotnet build
dotnet run

Then jump to the section Usage.

Run the app in Docker

Build the image:

./script/setup.sh

Start the container:

./script/start.sh

Restart the container:

./script/restart.sh

If you need, stop.sh will stop the container:

./script/stop.sh

Usage

You can now access http://localhost:8080/, authorize and make an API call. Depending on your setup, it could also be http://192.168.99.100:8080/ or similar.

License

This sample application is available as open source under the terms of the MIT licence.

Copyright (c) 2019 Sage Group Plc. All rights reserved.