tsledge 0.1.1 → 0.1.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/package.json +1 -2
- package/docs/TODO.md +0 -64
- package/docs/res/thumbnail.png +0 -0
package/package.json
CHANGED
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
"author": "Niklas Wockenfuß",
|
|
3
3
|
"homepage": "https://niklaswockenfuss.de/",
|
|
4
4
|
"name": "tsledge",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.2",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "My playground and some helpful tools for web development ",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"files": [
|
|
11
|
-
"docs/*",
|
|
12
11
|
"dist/**/*",
|
|
13
12
|
"README.md",
|
|
14
13
|
"LICENSE"
|
package/docs/TODO.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
## Kern Thema:
|
|
2
|
-
Überarbeitung und Erweiterung der API Endpunkte für Ressourcen.
|
|
3
|
-
Es soll Userfreundlicher und flexibler werden.
|
|
4
|
-
Außerdem möchte ich Kernelemente die ich in verschiedenen Projekten nutzen könnte auch hier Isoliert bereitstellen.
|
|
5
|
-
|
|
6
|
-
### Offene Fragen:
|
|
7
|
-
|
|
8
|
-
- Wie soll die Id dargestellt werden?
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
/api/v1/users?id=xx
|
|
12
|
-
```
|
|
13
|
-
(und?)/oder
|
|
14
|
-
```
|
|
15
|
-
/api/v1/users/42
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### Filter
|
|
19
|
-
- Die Filter müssen pro Endpunkt in einer Config festgelegt werden
|
|
20
|
-
```
|
|
21
|
-
/users?role=admin&sort=createdAt,desc
|
|
22
|
-
/users?skip=25&limit=25
|
|
23
|
-
/user-profiles
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## RETURN
|
|
27
|
-
|
|
28
|
-
- Multiple Resources
|
|
29
|
-
```
|
|
30
|
-
{
|
|
31
|
-
"data": [],
|
|
32
|
-
"meta": {
|
|
33
|
-
"total": 0
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
- Single Resource
|
|
39
|
-
```
|
|
40
|
-
{
|
|
41
|
-
"data": {}
|
|
42
|
-
}
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### TODO
|
|
46
|
-
|
|
47
|
-
- Es fehlt noch eine Dynamische Auth Validierung im FluentPatternExecutor
|
|
48
|
-
- Es fehlt auch noch die EOL Abfrage, das ganze soll auch möglichst Dynamisch sein
|
|
49
|
-
- Die Filter(Felder der Collection, also nicht nach q und den feldern filtern) Überprüfen/Überarbeiten
|
|
50
|
-
- Das Auth verfahren darf/muss für jede route speziell an und aus geschaltet werden
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
## Unsortiert
|
|
54
|
-
GET /api/v1/users
|
|
55
|
-
GET /api/v1/users/42
|
|
56
|
-
POST /api/v1/users
|
|
57
|
-
PATCH /api/v1/users/42
|
|
58
|
-
DELETE /api/v1/users/42
|
|
59
|
-
GET /api/v1/users/42/orders?status=open
|
|
60
|
-
GET /user-roles
|
|
61
|
-
GET /user-roles?userId=42
|
|
62
|
-
GET /user-roles?roleId=7
|
|
63
|
-
GET /users/42/roles
|
|
64
|
-
GET /roles/7/users
|
package/docs/res/thumbnail.png
DELETED
|
Binary file
|