redis-smq-rest-api 8.0.1 โ†’ 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 +6 -0
  2. package/README.md +75 -18
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
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
+
6
12
  ## [8.0.1](https://github.com/weyoss/redis-smq/compare/v8.0.0...v8.0.1) (2025-04-13)
7
13
 
8
14
  ### ๐Ÿ“ Documentation
package/README.md CHANGED
@@ -3,31 +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.
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.
8
8
 
9
9
  ## Features
10
10
 
11
- - A clean and simple implementation as always :).
12
- - Strict Request/Response validation based on [JSON Schema](https://json-schema.org/).
13
- - Native [OpenAPI v3](https://www.openapis.org/) support and [Swagger](https://swagger.io/) for developers.
14
- - Rigorously tested codebase with code coverage no less than 90%.
15
- - 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.
16
21
 
17
22
  ## Installation
18
23
 
19
- ```shell
20
- npm i redis-smq-rest-api --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
21
33
  ```
22
34
 
23
- ### Prerequisites
35
+ ## Version Compatibility
24
36
 
25
- - [RedisSMQ V8](https://github.com/weyoss/redis-smq) latest release.
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
+ ```
42
+
43
+ See [version compatibility](https://github.com/weyoss/redis-smq/blob/master/packages/redis-smq/docs/version-compatibility.md) for details.
26
44
 
27
45
  ## Configuration
28
46
 
29
- The REST API configuration extends [RedisSMQ Configuration](https://github.com/weyoss/redis-smq/blob/master/docs/configuration.md)
30
- 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
31
50
 
32
51
  ```typescript
33
52
  export type THttpApiConfig = {
@@ -41,6 +60,27 @@ export interface IRedisSMQHttpApiConfig extends IRedisSMQConfig {
41
60
  }
42
61
  ```
43
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
+
44
84
  ## Usage
45
85
 
46
86
  ```typescript
@@ -64,11 +104,28 @@ const apiServer = new RedisSmqRestApi(config);
64
104
  apiServer.run();
65
105
  ```
66
106
 
67
- ## 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
68
126
 
69
- Once your RedisSMQ API server is up and running you may view the API Reference and try it directly from
70
- the Swagger UI which is accessible via `http://<HOSTAME:PORT>/docs`.
127
+ For detailed endpoint documentation, refer to the Swagger UI.
71
128
 
72
- ## OpenAPI Specification
129
+ ## License
73
130
 
74
- 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.1",
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.1",
65
- "redis-smq-common": "^8.0.1"
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",