An open-source .NET client wrapper for the SnapMD Connected Care REST API.
General documentation for the REST API can be found at https://sandbox.connectedcare.md/api/Help/.
This project uses Json.NET for serialization.
Unit tests require a separate config file stored next to the App.config, called SnapMD.ConnectedCare.Sdk.Test.Properties.Settings.csproj
. This file is not in the .gitignore
file because this creates compilation errors for new downloads or CI servers. The file should look like this:
<?xml version="1.0"?>
<SnapMD.ConnectedCare.Sdk.Tests.Properties.Settings>
<setting name="ApiDeveloperId" serializeAs="String">
<value>******</value>
</setting>
<setting name="ApiKey" serializeAs="String">
<value>*********</value>
</setting>
<setting name="TestUsername" serializeAs="String">
<value>*********</value>
</setting>
<setting name="TestPassword" serializeAs="String">
<value>*********</value>
</setting>
<setting name="BaseUrl" serializeAs="String">
<value>https://sandbox.connectedcare.md/api/</value>
</setting>
</SnapMD.ConnectedCare.Sdk.Tests.Properties.Settings>
It is crucial that we prevent users' credentials from being stored in the Git repository, so if your settings are discovered in your pull request, it will be rejected. In order to make local changes to this file, use the following Git command:
git update-index --assume-unchanged SnapMD.ConnectedCare.Sdk.Tests/SnapMD.ConnectedCare.Sdk.Tests.Properties.Settings.config
We welcome pull requests. However, please make sure you do not store any passwords or API keys in the Git history. When you change the values in app.config, make sure you back up that file and revert your confidential values before committing. This also means if you visit the project's Property pages in Visual Studio, when it asks you if you want to use the new values in the app.config to update your Settings file, remember to click "No". Otherwise, your confidential information will be stored in Properties/Settings.settings
and Properties/Settings.Designer.cs
.