@uecsio/pages-api 1.0.0 → 1.2.1
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/README.md +11 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @uecsio/pages-api
|
|
2
2
|
|
|
3
3
|
A reusable NestJS Pages module for content management with full CRUD operations, validation, and Swagger documentation.
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ A reusable NestJS Pages module for content management with full CRUD operations,
|
|
|
14
14
|
## 📦 Installation
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install @
|
|
17
|
+
npm install @uecsio/pages-api
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## 🔧 Dependencies
|
|
@@ -32,7 +32,7 @@ npm install @nestjs/common @nestjs/typeorm typeorm class-validator class-transfo
|
|
|
32
32
|
```typescript
|
|
33
33
|
import { Module } from '@nestjs/common';
|
|
34
34
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
35
|
-
import { PagesModule } from '@
|
|
35
|
+
import { PagesModule } from '@uecsio/pages-api';
|
|
36
36
|
|
|
37
37
|
@Module({
|
|
38
38
|
imports: [
|
|
@@ -56,7 +56,7 @@ export class AppModule {}
|
|
|
56
56
|
|
|
57
57
|
```typescript
|
|
58
58
|
import { Injectable } from '@nestjs/common';
|
|
59
|
-
import { PagesService, CreatePageDto, Page } from '@
|
|
59
|
+
import { PagesService, CreatePageDto, Page } from '@uecsio/pages-api';
|
|
60
60
|
|
|
61
61
|
@Injectable()
|
|
62
62
|
export class YourService {
|
|
@@ -92,7 +92,7 @@ You can extend the Page entity for your specific needs:
|
|
|
92
92
|
|
|
93
93
|
```typescript
|
|
94
94
|
import { Entity } from 'typeorm';
|
|
95
|
-
import { Page } from '@
|
|
95
|
+
import { Page } from '@uecsio/pages-api';
|
|
96
96
|
|
|
97
97
|
@Entity()
|
|
98
98
|
export class CustomPage extends Page {
|
|
@@ -161,7 +161,7 @@ You can override the database configuration:
|
|
|
161
161
|
```typescript
|
|
162
162
|
import { Module } from '@nestjs/common';
|
|
163
163
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
164
|
-
import { PagesModule } from '@
|
|
164
|
+
import { PagesModule } from '@uecsio/pages-api';
|
|
165
165
|
|
|
166
166
|
@Module({
|
|
167
167
|
imports: [
|
|
@@ -183,7 +183,7 @@ export class AppModule {}
|
|
|
183
183
|
|
|
184
184
|
```typescript
|
|
185
185
|
import { Injectable } from '@nestjs/common';
|
|
186
|
-
import { PagesService } from '@
|
|
186
|
+
import { PagesService } from '@uecsio/pages-api';
|
|
187
187
|
|
|
188
188
|
@Injectable()
|
|
189
189
|
export class CustomPagesService extends PagesService {
|
|
@@ -197,7 +197,7 @@ export class CustomPagesService extends PagesService {
|
|
|
197
197
|
|
|
198
198
|
```typescript
|
|
199
199
|
import { Controller } from '@nestjs/common';
|
|
200
|
-
import { PagesController } from '@
|
|
200
|
+
import { PagesController } from '@uecsio/pages-api';
|
|
201
201
|
|
|
202
202
|
@Controller('custom-pages')
|
|
203
203
|
export class CustomPagesController extends PagesController {
|
|
@@ -221,9 +221,9 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
221
221
|
|
|
222
222
|
If you encounter any problems or have questions, please:
|
|
223
223
|
|
|
224
|
-
1. Check the [documentation](https://github.com/
|
|
225
|
-
2. Search [existing issues](https://github.com/
|
|
226
|
-
3. Create a [new issue](https://github.com/
|
|
224
|
+
1. Check the [documentation](https://github.com/uecsio/pages-api#readme)
|
|
225
|
+
2. Search [existing issues](https://github.com/uecsio/pages-api/issues)
|
|
226
|
+
3. Create a [new issue](https://github.com/uecsio/pages-api/issues/new)
|
|
227
227
|
|
|
228
228
|
## 🔄 Changelog
|
|
229
229
|
|