
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
Start a simple rest api for prototyping purposes.
$ npm install -g t-rest
In the folder of the server, a configuration file config/default.yaml (node-config) is needed with these properties :
port (default:3000) : the server port.title (default: "API"): the title of the api.description (default: "A prototype api.") : a short description of the api.version (default: "1.0.0") : the version of the api.root (default: "/api") : the root path of the api.port: 3000
title: Basic
description: A basic t-rest example of task rest api.
version: 1.0.1
root: /api
A file entity/{route}.yaml containing the schema of each entity you want to expose must be created.
Then simply launch the t-rest server in the folder.
$ npm install -g t-rest
$ cd ./myapi
$ t-rest
A user interface is available (thanks to Swagger UI) at the rout path of the server for trying out the api.
Then go to
Multiple examples are available in the example folder.
MIT © Aloïs Deniel
FAQs
Start a simple rest api for prototyping purposes.
We found that t-rest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.