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
- Host: GitHub
- URL: https://github.com/lionelvillard/openwhisk-github
- Owner: lionelvillard
- License: apache-2.0
- Created: 2017-03-07T15:12:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-07T19:42:58.000Z (over 8 years ago)
- Last Synced: 2025-06-27T00:07:27.403Z (about 1 year ago)
- Topics: github, openwhisk, rest-api, swagger
- Language: JavaScript
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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)