An open API service indexing awesome lists of open source software.

https://github.com/lionelvillard/openwhisk-github

OpenWhisk GitHub Rest API v3 action wrappers
https://github.com/lionelvillard/openwhisk-github

github openwhisk rest-api swagger

Last synced: about 1 month ago
JSON representation

OpenWhisk GitHub Rest API v3 action wrappers

Awesome Lists containing this project

README

          

Github [OpenWhisk](https://openwhisk.org) actions generated by [Swagger OpenWhisk CodeGen](https://github.com/lionelvillard/swagger-js-codegen)

Generate actions
-

Type these commands in a terminal:

$ npm install
$ node main.js

The `actions` directory should now be populated with `github` action wrappers.

Manual deployment
-

To deploy an action, go the the `actions` directory and type this command:

$ wsk action create

For instance:

$ wsk action create getIssues getIssues.js

Deployment using `wskdeploy` (Experimental)
-

To deploy all actions, it is best to run `wskdeploy` in the project root directory.

$ wskdeploy --allow-defaults=true

Authentication
-

Several `github` APIs require authentication.

For OAuth2 authentication, the recommended way is to use the [OpenWhisk OAuth package](https://github.com/starpit/openwhisk-oauth) to obtain a OAuth token. Alternatively for testing purpose, use a [Personal access token](https://github.com/settings/tokens).

API Documentation
-

Available on the [IBM API Harmony](https://apiharmony.mybluemix.net/apis/github_api)