Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(MPDZBS-877): zmscitizenapi into next #674

Open
wants to merge 103 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
f7897c6
update readmes
ThomasAFink Sep 10, 2024
e91a517
refactor some functions to base controller class
Sep 17, 2024
a43962e
add zmsapi methods to base controller
Sep 17, 2024
48da06a
add helper methods to base controller
Sep 17, 2024
d64c675
refactored into services and controllers
Sep 18, 2024
686d20a
remove duplicate function definitions
Sep 18, 2024
983c529
move helpers from base controller to new utility helper
Sep 18, 2024
261fd82
add a method
Sep 18, 2024
830421f
Feature mpdzbs 887 zmscitizenapi post reserve appointment and refacto…
ThomasAFink Sep 27, 2024
9d7189f
feat(MPDZBS-877): Merge next into citizenapi branch
ThomasAFink Sep 27, 2024
78b1e1e
feat(MPDZBS-877): Readd zmscitizenapi to github workflow
ThomasAFink Sep 27, 2024
e1d16ad
feat(MPDZBS-877): Readd files lost in github history
ThomasAFink Sep 27, 2024
c19da68
feat(MPDZBS-877): Readd files lost in github history
ThomasAFink Sep 27, 2024
ef0babd
feat(MPDZBS-877): Resolve merge conflict in zmsentities
ThomasAFink Sep 27, 2024
a1073e2
feat(MPDZBS-877): Readd zmscitizenapi schemas to zmsentities deleted …
ThomasAFink Sep 27, 2024
2a69a60
Merge branch 'next' into feature-MPDZBS-877-zmscitizenapi
Sep 30, 2024
773ae9a
(feat MPDZBS-877): update local env cli
Sep 30, 2024
60b370c
Feature mpdzbs 887 zms 2518 zmscitizenapi post update appointment (#587)
ThomasAFink Oct 4, 2024
e3916b9
Merge branch 'next' into feature-MPDZBS-877-zmscitizenapi
ThomasAFink Nov 6, 2024
853cf7c
feat(MPDZBS-877): update .gitignore
ThomasAFink Nov 6, 2024
348785e
cleanup(MPDZBS-877): Improve security and cleanup code
ThomasAFink Nov 6, 2024
f686a23
fix(MPDZBS-877): fix bin configure
ThomasAFink Nov 6, 2024
c15dea6
fix(MPDZBS-877): fix config.example.php
ThomasAFink Nov 6, 2024
957d89c
Merge branch 'next' into feature-MPDZBS-877-zmscitizenapi
ThomasAFink Nov 21, 2024
5d9a5dc
cleanup(MPDZBS-877): merge next into feature branch
ThomasAFink Nov 21, 2024
f653a22
docs(MPDZBS-877): update docs for zmscitizenapi
Nov 26, 2024
4222f54
clean(MPDZBS-877): change friendly captcha default endpoint to eu
ThomasAFink Nov 26, 2024
b2d5b25
clean(MPDZBS-877): change maintenance and captcha enabled to boolean
ThomasAFink Nov 26, 2024
cc7629a
clean(MPDZBS-877): improve internal error handling enable middleware
ThomasAFink Nov 26, 2024
44981d8
feat(MPDZBS-877): return 503 for maintenance
ThomasAFink Nov 26, 2024
26178ae
feat(MPDZBS-877): add generic captcha interface
ThomasAFink Nov 26, 2024
f4085ff
clean(MPDZBS-877): improve validation for array ids
ThomasAFink Nov 26, 2024
5c27510
feat(MPDZBS-877): improve zmscitizenapi typing
ThomasAFink Nov 28, 2024
205e0f0
clean(MPDZBS-877): typing overhaul using zmsentities
Dec 2, 2024
c3ccbb4
clean(MPDZBS-877): typing overhaul using zmsentities
Dec 2, 2024
e9dac7d
clean(MPDZBS-877): improve telephone validation regex
Dec 2, 2024
6724f37
clean(MPDZBS-877): improve serviceId validation regex
Dec 2, 2024
1a27b17
clean(MPDZBS-877): fix naming issue
Dec 2, 2024
cb8fcb9
clean(MPDZBS-877): make hardcoded source name dynamic
Dec 2, 2024
60553d2
clean(MPDZBS-877): clean up more and change citizenapi to utf8
Dec 2, 2024
1b4dbd9
clean(MPDZBS-877): improve error messaging codes and expand office ap…
Dec 2, 2024
005fd03
clean(MPDZBS-877): cleanup syntax and error handling
Dec 2, 2024
8de3974
clean(MPDZBS-877): cleanup syntax and error handling
Dec 2, 2024
8528769
fix(MPDZBS-877): offices and services mapper
Dec 2, 2024
daf1593
fix(MPDZBS-877): fix reserve appointment validation
Dec 2, 2024
f737b9e
fix(MPDZBS-877): improve some validation for empty arrays
Dec 3, 2024
8def432
Merge branch 'next' into feature-MPDZBS-877-zmscitizenapi
Dec 13, 2024
cc0ad02
feat(MPDZBS-877): Improve ThinnedProcess object and cleanup some stuf…
ThomasAFink Dec 16, 2024
f98d01f
feat(MPDZBS-877): zmscitizenapi cleanup (#740)
ThomasAFink Dec 16, 2024
e417d3c
feat(MPDZBs-877): clean up more stuff validation improvement
Dec 16, 2024
fb5f900
Update zmscitizenapi/src/Zmscitizenapi/Captcha.php
ThomasAFink Dec 16, 2024
c9143c4
feat(MPDZBs-877): clean up captcha add more tests
Dec 16, 2024
fc93309
feat(MPDZBS-877): Refactor Controllers and improve move typing buildi…
Dec 17, 2024
d5e7a6b
feat(MPDZBS-877): Refactor Utilities and Helpers
Dec 17, 2024
2c443c8
Update zmscitizenapi/src/Zmscitizenapi/Services/MapperService.php
ThomasAFink Dec 17, 2024
cca3fb0
feat(MPDZBS-877): Fix bug
Dec 17, 2024
f9f8626
feat(MPDZBS-877): rename scope models in zmscitizenapi
Dec 17, 2024
05cf228
feat(MPDZBS-877): cleanup service model
Dec 17, 2024
761b647
feat(MPDZBS-877): Improve ThinnedProcess and ThinnedScope models
Dec 18, 2024
e9933c9
fix(MPDZBS-877): swagger docs
Dec 19, 2024
3bc5da2
fix(MPDZBS-877): swagger docs
Dec 19, 2024
573f396
fix(MPDZBS-877): set up models for Office Service and Captcha
Dec 19, 2024
b22c723
fix(MPDZBS-877): Improve captcha typing
Dec 19, 2024
6efc141
Update zmscitizenapi/src/Zmscitizenapi/Models/Captcha/AltchaCaptcha.php
ThomasAFink Dec 19, 2024
5efdb48
fix(MPDZBS-877): Improve captcha typing cleanup
Dec 19, 2024
1aca7d0
fix(MPDZBS-877): Improve captcha typing cleanup
Dec 19, 2024
21a0b9e
fix(MPDZBS-877): remove status from visual response
Dec 19, 2024
e48e51d
fix(MPDZBS-877): Improve typing for Office Service and ThinnedScope
Dec 19, 2024
dbf88c5
fix(MPDZBS-877): Improve typing for Office Service Relations
Dec 19, 2024
bfc64cb
fix(MPDZBS-877): Improve typing for ThinnedProvider
Dec 20, 2024
69462ab
fix(MPDZBS-877): Refactor model lists to collections
Dec 20, 2024
9a410b2
fix(MPDZBS-877): Improve typing for Combinable
Dec 20, 2024
7fd1f6e
fix(MPDZBS-877): Cleanup AltchaCaptcha class
Dec 20, 2024
8636cb5
fix(MPDZBS-877): Improve parameters for getAvailableAppointments
Dec 20, 2024
cf5c4e9
fix(MPDZBS-877): Improve typing for AvailableDays and AvailableAppoin…
Dec 20, 2024
67d9ad3
fix(MPDZBS-877): Cleanup schemas
Dec 20, 2024
68bfc0a
fix(MPDZBS-877): Cleanup schema mismatch
Dec 20, 2024
95ed1d8
fix(MPDZBS-877): Optimize next loops and schema typing
Dec 20, 2024
2b8a19d
fix(MPDZBS-877): Improve schema
Dec 20, 2024
e996b7b
fix(MPDZBS-877): Improve schema
Dec 20, 2024
acfbca1
fix(MPDZBS-877): Improve schema and error catching
Dec 20, 2024
5d175c3
fix(MPDZBS-877): Improve api fetching safety
Dec 20, 2024
16b2f3c
fix(MPDZBS-877): Introduce strict typing for files with logic
Dec 20, 2024
708ca1e
fix(MPDZBS-877): Introduce schema validation into the models
Dec 23, 2024
efdf59c
fix(MPDZBS-877): Centralize validation, set default language to germa…
Dec 27, 2024
979d812
fix(MPDZBS-877): authKeyMissMatch error exception
Dec 27, 2024
2ef5fdc
fix(MPDZBS-877): cleanup some code
Dec 27, 2024
af61e93
fix(MPDZBS-877): cleanup collection models
Dec 27, 2024
7725d44
Delete zmscitizenapi/templates/.keep
ThomasAFink Dec 27, 2024
484039d
Revert "Delete zmscitizenapi/templates/.keep"
Dec 27, 2024
9da3db1
clean(MPDZBS-877): remove comments
ThomasAFink Dec 27, 2024
5fb223e
fix(MPDZBS-877): errorCode fix
ThomasAFink Dec 27, 2024
c7ba523
fix(MPDZBS-877): validation input date bug and add unittest plus auth…
ThomasAFink Dec 27, 2024
b1a7536
clean(MPDZBS-877): remove unused vars
ThomasAFink Dec 27, 2024
6f3630e
feat(MPDZBS-877): Improve zmsapi exception handling
ThomasAFink Dec 30, 2024
5b38021
feat(MPDZBS-877): Improve contact mapping and provider mapping
ThomasAFink Dec 30, 2024
09a270e
Improve exception handling
ThomasAFink Dec 30, 2024
e890c9d
feat(MPDZBS-877): Refactor office model
ThomasAFink Dec 30, 2024
5f2f718
feat(MPDZBS-877): fix ProcessFreeSlots typing
ThomasAFink Dec 30, 2024
769264a
clean(MPDZBS-877): refactor and improve contoller legibility
ThomasAFink Jan 2, 2025
9cc7a80
fix(MPDZBS-877): improve post request validation dont get request bod…
ThomasAFink Jan 2, 2025
89ea5f0
clean(MPDZBS-877): improve OfficesByServiceList controller
ThomasAFink Jan 2, 2025
f8df923
clean(MPDZBS-877): correct not yet implemented controllers
ThomasAFink Jan 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
php_version: "8.0"
- module: zmscalldisplay
php_version: "8.0"
- module: zmscitizenapi
php_version: "8.0"
- module: zmsmessaging
php_version: "8.0"
- module: zmsstatistic
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
php_version: "8.0"
- module: zmscalldisplay
php_version: "8.0"
- module: zmscitizenapi
php_version: "8.0"
- module: zmsdldb
php_version: "8.0"
- module: zmsentities
Expand Down
8 changes: 8 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ RewriteRule ^terminvereinbarung/calldisplay(.*) /var/www/html/zmscalldisplay/pub
RewriteRule ^terminvereinbarung/calldisplay/+_(.*) /var/www/html/zmscalldisplay/public/_$1 [QSA]


# zmscitizenapi
SetEnvIf Request_URI ^/zmscitizenapi ZMS_MODULE_BASEPATH=/terminvereinbarung/api/citizen
RewriteCond %{REQUEST_URI} !^/terminvereinbarung/api/citizen/+(_|doc)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^terminvereinbarung/api/citizen(.*) /var/www/html/zmscitizenapi/public/index.php?$1 [QSA]
RewriteRule ^terminvereinbarung/api/citizen/+(doc|_)(.*) /var/www/html/zmscitizenapi/public/$1$2 [QSA]


# zmsstatistic
SetEnvIf Request_URI ^/zmsstatistic ZMS_MODULE_BASEPATH=/terminvereinbarung/statistic
RewriteCond %{REQUEST_URI} !^/terminvereinbarung/[^/]+/+_
Expand Down
1 change: 1 addition & 0 deletions cli
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ modules = [
"zmsadmin",
"zmsapi",
"zmscalldisplay",
"zmscitizenapi",
"zmsclient",
"zmsdb",
"zmsdldb",
Expand Down
2 changes: 1 addition & 1 deletion mellon/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
convertWarningsToExceptions="true"
processIsolation="false"
forceCoversAnnotation="false"
stopOnFailure="true"
stopOnFailure="false"
bootstrap="tests/bootstrap.php"
>
<testsuites>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"$schema": "https://schema.berlin.de/queuemanagement/metaresult.json",
"error": false,
"generated": "2019-02-11T16:07:58+01:00",
"server": "Zmsapi-ENV (v2.19.02-38-g0ba2cba)"
"server": "Zmsapi"
},
"data": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"$schema": "https://schema.berlin.de/queuemanagement/metaresult.json",
"error": false,
"generated": "2019-02-11T16:07:58+01:00",
"server": "Zmsapi-ENV (v2.19.02-38-g0ba2cba)"
"server": "Zmsapi"
},
"data": [
{
Expand Down
2 changes: 1 addition & 1 deletion zmsadmin/tests/Zmsadmin/fixtures/GET_source_unittest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"$schema": "https://schema.berlin.de/queuemanagement/metaresult.json",
"error": false,
"generated": "2019-02-08T14:45:15+01:00",
"server": "Zmsapi-ENV (v2.19.02-38-g0ba2cba)"
"server": "Zmsapi"
},
"data": {
"$schema": "https://schema.berlin.de/queuemanagement/source.json",
Expand Down
22 changes: 17 additions & 5 deletions zmsapi/public/doc/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
## How does the Open Api definition work
## Version 2.0

```
bin/configure
npm i
npm run build
npm run doc
swagger-cli bundle -o public/doc/swagger.json public/doc/swagger.yaml
python3 -m http.server 8001
```

Reachable at:
```
http://[::]:8001/public/doc/
https://zms.ddev.site/terminvereinbarung/api/2/doc/index.html
https://it-at-m.github.io/eappointment/zmsapi/public/doc/index.html
```

* Under /public/doc are the schema from zmsentities. A symbolic link points to the corresponding folder under vendor/eappointment/zmsentities/schema.

* Under /bin there is a build_swagger.js file. This is executed via ``npm run doc`` and validates the existing swagger.yaml file. If valid, the open api annotations are read from routing.php and the remaining information such as info, definitions, version and tags are compiled from the yaml files under ./partials into a complete swagger.yaml.
Expand All @@ -9,8 +25,4 @@

* To access all paths resolved via redoc or the open api documentation, a resolved swagger.json must be created from the swagger.yaml. This is done via the swagger cli with a call to ``bin/doc``. This call executes the above npm command ``npm run doc`` and subsequently creates a full swagger.json.

To render the open-api doc by redoc and swagger, appropriate files such as swagger-ui files are fetched in the CI process and stored at https://eappointment.gitlab.io/zmsapi/.

* If a new entity definition should be added, the reference must be set here under definitions.

Translated with www.DeepL.com/Translator (free version)
To render the open-api doc by redoc and swagger, appropriate files such as swagger-ui files are fetched in the CI process and stored at https://eappointment.gitlab.io/zmsapi/.
196 changes: 0 additions & 196 deletions zmscalldisplay/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion zmscalldisplay/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
stopOnFailure="true"
stopOnFailure="false"
verbose="true"
processIsolation="false"
>
Expand Down
17 changes: 17 additions & 0 deletions zmscitizenapi/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
node_modules
vendor
vendor.zmsbase
config.php
tags
.DS_*
public/_tests
public/doc/assets/redoc.min.js
public/doc/swagger.*
public/_test/assets/swagger-ui-bundle.js
public/_test/assets/swagger-ui.css
public/_test/assets/swagger-ui-standalone-preset.js
cache
vendor.old
vendor.update
VERSION
.phpunit.result.cache
Loading
Loading