Commit d385e16
committed
major refactor and add openapi specification 3 to document the api
When correcting a bookmark as admin use the new adminservice and not
abuse the PersonalService as until now
refactor - rename "shared" to "public" on bookmark
refactor - change "likes" to "likeCount" for number of likes on bookmark
fix - set "descriptionHtml" when "description" is present
clean api - hide field '__v' from api return
clean api - hide field 'lastAccessedAt' from api return
refactor - rename field 'githubURL' to 'sourceCodeURL'
remove unused attribute "category"
start editing swagger.yaml
refactor - return empty array instead of NOT_FOUND for missing location
move scrape endopoint to own router and start with openapi
document scrape endpoint in open-api
return empty list when looking in personal bookmarks by location
improve openapi documentation
allow search in personal bookmarks with special filters only
allow search in public bookmarks with special filters only
add examples to create bookmark and queryParam
add stack to error messages when in development
rename const to correspond the Error name
add create index operation to mongo init script
add error types to open api definition and do some corrections there
fix openapi and overwrite httpStatus for validation error
openapi - move userId and bookmarkId to schema/parameters section
openapi - add enum for queryParam
update error message by deletion
openapi - add batch delete operation to api docs
openapi - document suggested-tags method and add missing forbidden 403
openapi - add tags and version endpoint
openapi - add tags to the root enable to establish the order of showing
In swager-ui
openapi - add empty line1 parent 9dd0c07 commit d385e16
File tree
32 files changed
+1190
-331
lines changed- docker-compose-setup
- docs/openapi
- resources
- db-migration/mongodb
- mongodb-commands-for-dev
- src
- common
- model
- routes
- admin
- public
- users
- bookmarks
- webpage-info
32 files changed
+1190
-331
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
0 commit comments