Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redis-smq-rest-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-smq-rest-api

A RESTful API for RedisSMQ

  • 1.0.0-rc.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
672
increased by51.35%
Maintainers
1
Weekly downloads
 
Created
Source

RedisSMQ

A RESTful API for RedisSMQ

Tests Code quality Coverage Status NPM version

RedisSMQ REST API

RedisSMQ REST API offers an HTTP interface which allows any web capable application to interact with the RedisSMQ message queue using a RESTful API.

Currently, RedisSMQ REST API is distributed as an RC release and is still in active development.

To start using the REST API make sure that you are using the latest RedisSMQ V8 RC release.

Features

  • A clean and simple implementation as always :).
  • Strict Request/Response validation based on JSON Schema.
  • Native OpenAPI v3 support and Swagger for developers.
  • Rigorously tested codebase with code coverage no less than 90%.
  • Both ESM & CJS modules are supported.

Installation

npm i redis-smq-rest-api@rc --save

Configuration

The REST API configuration extends RedisSMQ Configuration while adding the API server configuration.

export type THttpApiConfig = {
  port?: number;
  host?: string;
  basePath?: string;
};

export interface IRedisSMQHttpApiConfig extends IRedisSMQConfig {
  apiServer?: THttpApiConfig;
}

Usage

import { RedisSmqRestApi } from 'redis-smq-rest-api';

const config: IRedisSMQHttpApiConfig = {
    redis: {
        client: ERedisConfigClient.IOREDIS,
        options: {
            host: '127.0.0.1',
            port: 6379,
        },
    },
    apiServer: {
        host: '127.0.0.1',
        port: 7210
    }
};

const apiServer = new RedisSmqRestApi(config);
apiServer.run();

API Reference

Once your RedisSMQ API server is up and running you may view the API Reference and try it directly from the Swagger UI which is accessible via http://<HOSTAME:PORT>/docs.

OpenAPI Specification

The OpenAPI specification is available at http://<HOSTAME:PORT>/assets/openapi-specs.json

Keywords

FAQs

Package last updated on 15 May 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc