Skip to content

koakh/KoakhNodeModuleTypescriptRestActionsSampleApp

Repository files navigation

READ ME

snap01

a sample project for @koakh/typescript-rest-actions-api module

Start Project

# install dependencies
$ npm i
# copy sample to .env
$ cp sample.env .env
# run app
$ npm run start
# or
$ npm run debug

NOTE: replace YOUR-SECRET-KEY-HERE in bellow files to meaningful apiKey

  • sample.env
  • .env
  • client.http

Static Pages

Request

use vscode rest client and invoke some requests from client.http

ex

$ curl --request POST \
  --url https://localhost:9050/api/action \
  --header 'authorization: Bearer YOUR-SECRET-KEY-HERE' \
  --header 'content-type: application/json' \
  --data '{"action": "ACTION_ACTION_LIST"}'

$ curl --request GET \
  --url https://localhost:9050/api/audit \
  --header 'authorization: Bearer YOUR-SECRET-KEY-HERE' \
  --header 'content-type: application/json'

About

a sample project for @koakh/typescript-rest-actions-api module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published