redis-smq-rest-api 8.0.0 โ†’ 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +75 -20
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.0.2](https://github.com/weyoss/redis-smq/compare/v8.0.1...v8.0.2) (2025-04-14)
7
+
8
+ ### ๐Ÿ“ Documentation
9
+
10
+ - reorganize and enhance documentation across packages ([212fe75](https://github.com/weyoss/redis-smq/commit/212fe75143f1c446045c346e460065215e98f1d7))
11
+
12
+ ## [8.0.1](https://github.com/weyoss/redis-smq/compare/v8.0.0...v8.0.1) (2025-04-13)
13
+
14
+ ### ๐Ÿ“ Documentation
15
+
16
+ - **redis-smq-rest-api:** update README ([62fad72](https://github.com/weyoss/redis-smq/commit/62fad721cd79997bfafa5eecc4564488f69563ab))
17
+
6
18
  ## [8.0.0](https://github.com/weyoss/redis-smq/compare/v8.0.0-rc.36...v8.0.0) (2025-04-13)
7
19
 
8
20
  **Note:** Version bump only for package redis-smq-rest-api
package/README.md CHANGED
@@ -3,33 +3,50 @@
3
3
  [![Latest Release](https://img.shields.io/github/v/release/weyoss/redis-smq?include_prereleases&label=release&color=green&style=flat-square)](https://github.com/weyoss/redis-smq/releases)
4
4
  [![Code Coverage](https://img.shields.io/codecov/c/github/weyoss/redis-smq?flag=redis-smq-rest-api&style=flat-square)](https://app.codecov.io/github/weyoss/redis-smq/tree/master/packages/redis-smq-rest-api)
5
5
 
6
- This package offers an HTTP interface which allows any web capable application to interact with the RedisSMQ
7
- message queue using a RESTful API.
8
-
9
- Currently, RedisSMQ REST API is distributed as an RC release and is still in active development.
6
+ RedisSMQ REST API provides an HTTP interface enabling any web-capable application to interact with the RedisSMQ message
7
+ queue using a RESTful API.
10
8
 
11
9
  ## Features
12
10
 
13
- - A clean and simple implementation as always :).
14
- - Strict Request/Response validation based on [JSON Schema](https://json-schema.org/).
15
- - Native [OpenAPI v3](https://www.openapis.org/) support and [Swagger](https://swagger.io/) for developers.
16
- - Rigorously tested codebase with code coverage no less than 90%.
17
- - Both ESM & CJS modules are supported.
11
+ - ๐Ÿš€ Clean and efficient implementation
12
+ - โœ… Strict request/response validation using [JSON Schema](https://json-schema.org/)
13
+ - ๐Ÿ“š Native [OpenAPI v3](https://www.openapis.org/) support and [Swagger UI](https://swagger.io/)
14
+ - ๐Ÿงช 90%+ code coverage with extensive testing
15
+ - ๐Ÿ“ฆ Support for both ESM & CJS modules
16
+
17
+
18
+ ## Prerequisites
19
+
20
+ - [RedisSMQ V8](https://github.com/weyoss/redis-smq) latest release.
18
21
 
19
22
  ## Installation
20
23
 
21
- ```shell
22
- npm i redis-smq-rest-api@rc --save
24
+ ```bash
25
+ # Using npm
26
+ npm install redis-smq-rest-api --save
27
+
28
+ # Using yarn
29
+ yarn add redis-smq-rest-api
30
+
31
+ # Using pnpm
32
+ pnpm add redis-smq-rest-api
23
33
  ```
24
34
 
25
- ### Prerequisites
35
+ ## Version Compatibility
36
+
37
+ โš ๏ธ Important: Always install matching versions of RedisSMQ packages to ensure compatibility.
38
+
39
+ ```bash
40
+ npm install redis-smq@x.x.x redis-smq-rest-api@x.x.x @redis-smq/common@x.x.x
41
+ ```
26
42
 
27
- - [RedisSMQ V8](https://github.com/weyoss/redis-smq) latest RC release.
43
+ See [version compatibility](https://github.com/weyoss/redis-smq/blob/master/packages/redis-smq/docs/version-compatibility.md) for details.
28
44
 
29
45
  ## Configuration
30
46
 
31
- The REST API configuration extends [RedisSMQ Configuration](https://github.com/weyoss/redis-smq/blob/master/docs/configuration.md)
32
- while adding the API server configuration.
47
+ The REST API configuration extends the base [RedisSMQ configuration](https://github.com/weyoss/redis-smq/blob/master/packages/redis-smq/docs/configuration.md) with additional API server settings.
48
+
49
+ ### Configuration Options
33
50
 
34
51
  ```typescript
35
52
  export type THttpApiConfig = {
@@ -43,6 +60,27 @@ export interface IRedisSMQHttpApiConfig extends IRedisSMQConfig {
43
60
  }
44
61
  ```
45
62
 
63
+ ### Configuration Examples
64
+
65
+ ```typescript
66
+ import { RedisSmqRestApi } from 'redis-smq-rest-api';
67
+
68
+ // Basic configuration
69
+ const basicConfig: IRedisSMQHttpApiConfig = {
70
+ redis: {
71
+ client: 'ioredis',
72
+ options: {
73
+ host: '127.0.0.1',
74
+ port: 6379,
75
+ },
76
+ },
77
+ apiServer: {
78
+ host: '127.0.0.1',
79
+ port: 7210,
80
+ },
81
+ };
82
+ ```
83
+
46
84
  ## Usage
47
85
 
48
86
  ```typescript
@@ -66,11 +104,28 @@ const apiServer = new RedisSmqRestApi(config);
66
104
  apiServer.run();
67
105
  ```
68
106
 
69
- ## API Reference
107
+ ## API Documentation
108
+
109
+ ### Swagger UI
110
+
111
+ Access the interactive API documentation at:
112
+
113
+ ```text
114
+ http://<HOSTNAME>:<PORT>/docs
115
+ ```
116
+
117
+ ### OpenAPI Specification
118
+
119
+ Download the OpenAPI specification at:
120
+
121
+ ```text
122
+ http://<HOSTNAME>:<PORT>/assets/openapi-specs.json
123
+ ```
124
+
125
+ ## Available Endpoints
70
126
 
71
- Once your RedisSMQ API server is up and running you may view the API Reference and try it directly from
72
- the Swagger UI which is accessible via `http://<HOSTAME:PORT>/docs`.
127
+ For detailed endpoint documentation, refer to the Swagger UI.
73
128
 
74
- ## OpenAPI Specification
129
+ ## License
75
130
 
76
- The OpenAPI specification is available at `http://<HOSTAME:PORT>/assets/openapi-specs.json`
131
+ This project is licensed under is released under the [MIT License](https://github.com/weyoss/redis-smq/blob/master/LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redis-smq-rest-api",
3
- "version": "8.0.0",
3
+ "version": "8.0.2",
4
4
  "description": "A RESTful API for RedisSMQ",
5
5
  "author": "Weyoss <weyoss@protonmail.com>",
6
6
  "license": "MIT",
@@ -61,8 +61,8 @@
61
61
  "uuid": "11.1.0"
62
62
  },
63
63
  "peerDependencies": {
64
- "redis-smq": "^8.0.0",
65
- "redis-smq-common": "^8.0.0"
64
+ "redis-smq": "^8.0.2",
65
+ "redis-smq-common": "^8.0.2"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/json-schema": "7.0.15",