@mini2/core 2.0.0 → 2.0.1-beta.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/Readme.MD +177 -0
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +4 -3
- package/dist/app.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/config.interface.d.ts +12 -0
- package/dist/interfaces/config.interface.d.ts.map +1 -1
- package/dist/local-test-server/index.d.ts +2 -0
- package/dist/local-test-server/index.d.ts.map +1 -0
- package/dist/local-test-server/index.js +23 -0
- package/dist/local-test-server/index.js.map +1 -0
- package/dist/local-test-server/local-test-controller.d.ts +7 -0
- package/dist/local-test-server/local-test-controller.d.ts.map +1 -0
- package/dist/local-test-server/local-test-controller.js +71 -0
- package/dist/local-test-server/local-test-controller.js.map +1 -0
- package/dist/notations/controller/index.d.ts +7 -5
- package/dist/notations/controller/index.d.ts.map +1 -1
- package/dist/notations/controller/index.js +31 -10
- package/dist/notations/controller/index.js.map +1 -1
- package/dist/notations/controller/rest.types.d.ts +19 -0
- package/dist/notations/controller/rest.types.d.ts.map +1 -1
- package/dist/swagger.d.ts +6 -12
- package/dist/swagger.d.ts.map +1 -1
- package/dist/swagger.js +180 -24
- package/dist/swagger.js.map +1 -1
- package/dist/utils/infer-schema.d.ts +5 -0
- package/dist/utils/infer-schema.d.ts.map +1 -0
- package/dist/utils/infer-schema.js +47 -0
- package/dist/utils/infer-schema.js.map +1 -0
- package/local-test-server/Local Test Server.postman_collection.json +163 -0
- package/package.json +1 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"_postman_id": "93b5a732-ff51-4928-8509-991ac85d7bab",
|
|
4
|
+
"name": "Local Test Server",
|
|
5
|
+
"description": "API documentation for Local Test Server\n\nContact Support:\n Name: API Support\n Email: support@example.com",
|
|
6
|
+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
|
7
|
+
"_exporter_id": "3780060",
|
|
8
|
+
"_collection_link": "https://mustafa-colakoglu.postman.co/workspace/Mildahealth~1da86d22-bbbb-4fb1-aa7f-6dd11edce5aa/collection/3780060-93b5a732-ff51-4928-8509-991ac85d7bab?action=share&source=collection_link&creator=3780060"
|
|
9
|
+
},
|
|
10
|
+
"item": [
|
|
11
|
+
{
|
|
12
|
+
"name": "local-test",
|
|
13
|
+
"item": [
|
|
14
|
+
{
|
|
15
|
+
"name": "Get all Local-test",
|
|
16
|
+
"event": [
|
|
17
|
+
{
|
|
18
|
+
"listen": "prerequest",
|
|
19
|
+
"script": {
|
|
20
|
+
"exec": [
|
|
21
|
+
"console.log(\"test\");"
|
|
22
|
+
],
|
|
23
|
+
"type": "text/javascript",
|
|
24
|
+
"packages": {},
|
|
25
|
+
"requests": {}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"listen": "test",
|
|
30
|
+
"script": {
|
|
31
|
+
"exec": [
|
|
32
|
+
"console.log(\"test 2\");"
|
|
33
|
+
],
|
|
34
|
+
"type": "text/javascript",
|
|
35
|
+
"packages": {},
|
|
36
|
+
"requests": {}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"protocolProfileBehavior": {
|
|
41
|
+
"disableBodyPruning": true
|
|
42
|
+
},
|
|
43
|
+
"request": {
|
|
44
|
+
"method": "GET",
|
|
45
|
+
"header": [
|
|
46
|
+
{
|
|
47
|
+
"key": "Content-Type",
|
|
48
|
+
"value": "application/json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"key": "Accept",
|
|
52
|
+
"value": "application/json"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"body": {
|
|
56
|
+
"mode": "raw",
|
|
57
|
+
"raw": "{\n \"name\": \"John Doe\"\n}",
|
|
58
|
+
"options": {
|
|
59
|
+
"raw": {
|
|
60
|
+
"headerFamily": "json",
|
|
61
|
+
"language": "json"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"url": {
|
|
66
|
+
"raw": "{{baseUrl}}/local-test/",
|
|
67
|
+
"host": [
|
|
68
|
+
"{{baseUrl}}"
|
|
69
|
+
],
|
|
70
|
+
"path": [
|
|
71
|
+
"local-test",
|
|
72
|
+
""
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"description": "Retrieve all Local-test records"
|
|
76
|
+
},
|
|
77
|
+
"response": [
|
|
78
|
+
{
|
|
79
|
+
"name": "OK",
|
|
80
|
+
"originalRequest": {
|
|
81
|
+
"method": "GET",
|
|
82
|
+
"header": [
|
|
83
|
+
{
|
|
84
|
+
"key": "Content-Type",
|
|
85
|
+
"value": "application/json"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"key": "Accept",
|
|
89
|
+
"value": "application/json"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"url": {
|
|
93
|
+
"raw": "{{baseUrl}}/local-test/",
|
|
94
|
+
"host": [
|
|
95
|
+
"{{baseUrl}}"
|
|
96
|
+
],
|
|
97
|
+
"path": [
|
|
98
|
+
"local-test",
|
|
99
|
+
""
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"status": "OK",
|
|
104
|
+
"code": 200,
|
|
105
|
+
"_postman_previewlanguage": "json",
|
|
106
|
+
"header": [
|
|
107
|
+
{
|
|
108
|
+
"key": "Content-Type",
|
|
109
|
+
"value": "application/json"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"cookie": [],
|
|
113
|
+
"body": "{\n \"name\": \"John Doe\"\n}"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "Not Found",
|
|
117
|
+
"originalRequest": {
|
|
118
|
+
"method": "GET",
|
|
119
|
+
"header": [
|
|
120
|
+
{
|
|
121
|
+
"key": "Content-Type",
|
|
122
|
+
"value": "application/json"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"key": "Accept",
|
|
126
|
+
"value": "application/json"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"url": {
|
|
130
|
+
"raw": "{{baseUrl}}/local-test/",
|
|
131
|
+
"host": [
|
|
132
|
+
"{{baseUrl}}"
|
|
133
|
+
],
|
|
134
|
+
"path": [
|
|
135
|
+
"local-test",
|
|
136
|
+
""
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"status": "Not Found",
|
|
141
|
+
"code": 404,
|
|
142
|
+
"_postman_previewlanguage": "json",
|
|
143
|
+
"header": [
|
|
144
|
+
{
|
|
145
|
+
"key": "Content-Type",
|
|
146
|
+
"value": "application/json"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"cookie": [],
|
|
150
|
+
"body": "{\n \"message\": \"Not Found\"\n}"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"variable": [
|
|
158
|
+
{
|
|
159
|
+
"key": "baseUrl",
|
|
160
|
+
"value": "http://localhost:3000"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"description": "Mini Express Framework - Lightweight and modular Express.js framework with TypeScript support",
|
|
28
28
|
"name": "@mini2/core",
|
|
29
|
-
"version": "2.0.
|
|
29
|
+
"version": "2.0.1-beta.2",
|
|
30
30
|
"author": "Mustafa Çolakoglu <mustafacolakoglu94@gmail.com> (https://github.com/mustafa-colakoglu)",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"class-transformer": "^0.5.1",
|