bcgov / gcpe-news-api-client

AutoRest client for BC Gov News website.
Apache License 2.0
1 stars 4 forks source link

gcpe-news-api-client

C# Client for BC Gov News API.

Introduction

The code of this client is generated by autorest and allows a C# MVC web application to easily consume the BC Government News API. The build script pushes a nuget package, and does not produce any container images.

Repository Map

Installation

In an OpenShift "Tools" or build project, add the objects contained in the OpenShift\Templates folder.

oc process -f build-template.json | oc create -f -

  1. Set the NUGET_KEY environment variable with your NUGET Key. (if you do not do this, the build will not push the Nuget package to nuget.org)
  2. Configure a github hook such that a commit to this repository will trigger a build.

Developer Prerequisites

Gov.News.Api.Client

DevOps

Development

A Visual Studio 2017 solution has been provided, however Visual Studio Pro is not required to run the build script.

Important

You will need to install Autorest prior to building the source. npm install -g autorest

You may have to run the build more than once initially if using Visual Studio.

Removing a package

Note that nuget.org maps delete to unlist.

If you wish to remove a package from nuget.org or another nuget repository, issue the following command:

nuget delete Gov.News.Api.Client <version-to-remove> -Source nuget.org -ApiKey <key>

(key is your Nuget.org key)

Contribution

Please report any issues.

Pull requests are always welcome.

If you would like to contribute, please see our contributing guidelines.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

Copyright 2017 Province of British Columbia

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at 

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Maintenance

This repository is maintained by GCPE. Click here for a complete list of our repositories on GitHub.