Skip to content

Commit

Permalink
Revert "Merge branch 'feature-MPDZBS-877-zmscitizenapi' into next"
Browse files Browse the repository at this point in the history
This reverts commit 5e9bc0d, reversing
changes made to e6c5a90.
  • Loading branch information
ThomasAFink committed Sep 10, 2024
1 parent 5e9bc0d commit c672cbe
Show file tree
Hide file tree
Showing 98 changed files with 2 additions and 14,243 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ 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: 1 addition & 1 deletion .github/workflows/static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ jobs:
# Step 11: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
2 changes: 0 additions & 2 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ 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: 0 additions & 8 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ 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: 0 additions & 1 deletion cli
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ modules = [
"zmsadmin",
"zmsapi",
"zmscalldisplay",
"zmscitizenapi",
"zmsclient",
"zmsdb",
"zmsdldb",
Expand Down
2 changes: 1 addition & 1 deletion zmsadmin/src/Zmsadmin/TicketprinterConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ public function readResponse(
)
);
}
}
}
5 changes: 0 additions & 5 deletions zmsapi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ dev: # init development system

live: # init live system, delete unnecessary libs
composer install --no-dev --prefer-dist
bin/configure
npm install
npm run build
npm run doc
npx swagger-cli bundle -o public/doc/swagger.json public/doc/swagger.yaml

fix: # run code fixing
php vendor/bin/phpcbf --standard=psr2 src/
Expand Down
16 changes: 0 additions & 16 deletions zmsapi/public/doc/README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
## 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
```


* 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 Down
1 change: 0 additions & 1 deletion zmsapi/src/Zmsapi/ProcessFree.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public function readResponse(
->readFreeProcesses($calendar, \App::getNow(), $slotType, $slotsRequired, $groupData ? true: false)
->withLessData($keepLessData)
;

if ($groupData && count($processList) >= $groupData) {
$processList = $processList->withUniqueScope(true);
} elseif ($groupData) {
Expand Down
19 changes: 0 additions & 19 deletions zmscitizenapi/.gitignore

This file was deleted.

32 changes: 0 additions & 32 deletions zmscitizenapi/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion zmscitizenapi/VERSION

This file was deleted.

89 changes: 0 additions & 89 deletions zmscitizenapi/bin/build_swagger.js

This file was deleted.

28 changes: 0 additions & 28 deletions zmscitizenapi/bin/configure

This file was deleted.

32 changes: 0 additions & 32 deletions zmscitizenapi/bootstrap.php

This file was deleted.

57 changes: 0 additions & 57 deletions zmscitizenapi/composer.json

This file was deleted.

Loading

0 comments on commit c672cbe

Please sign in to comment.