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.
- package/CHANGELOG.md +12 -0
- package/README.md +75 -20
- 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
|
[](https://github.com/weyoss/redis-smq/releases)
|
|
4
4
|
[](https://app.codecov.io/github/weyoss/redis-smq/tree/master/packages/redis-smq-rest-api)
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
-
|
|
14
|
-
- Strict
|
|
15
|
-
- Native [OpenAPI v3](https://www.openapis.org/) support and [Swagger](https://swagger.io/)
|
|
16
|
-
-
|
|
17
|
-
-
|
|
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
|
-
```
|
|
22
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
32
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
##
|
|
129
|
+
## License
|
|
75
130
|
|
|
76
|
-
|
|
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.
|
|
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.
|
|
65
|
-
"redis-smq-common": "^8.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",
|