28cf21e952
Move mocks to studentportalen folder ( #9 )
...
Deploy Mocks to Server / upload-mocks (push) Successful in 10s
Build, Test & Checkstyle / build (push) Successful in 21s
Reviewed-on: #9
Co-authored-by: nenzen <nenzen@dsv.su.se >
Co-committed-by: nenzen <nenzen@dsv.su.se >
2026-03-26 13:12:04 +01:00
d8d7e88c01
Add studentportalen mocks ( #8 )
...
Deploy Mocks to Server / upload-mocks (push) Successful in 11s
Build, Test & Checkstyle / build (push) Successful in 21s
Reviewed-on: #8
Co-authored-by: nenzen <nenzen@dsv.su.se >
Co-committed-by: nenzen <nenzen@dsv.su.se >
2026-03-26 10:42:28 +01:00
8aca735f8a
Fix PathItem bug ( #7 )
...
Build, Test & Checkstyle / build (push) Successful in 40s
The `OpenApiService.rebuild()` method was creating a new `PathItem` for each endpoint and calling `addPathItem()`, which replaced any existing `PathItem` at that path.
Reviewed-on: #7
Co-authored-by: nenzen <nenzen@dsv.su.se >
Co-committed-by: nenzen <nenzen@dsv.su.se >
2025-11-11 10:59:24 +01:00
1b29aeb4f6
Add relative time and date ( #6 )
...
Build, Test & Checkstyle / build (push) Successful in 46s
Adding the ability to set relative times and dates to be returned.
## How do test
You can test using the following yaml-file:
```yml
- method: "GET"
path: "/"
response:
status: 200
headers:
Content-Type: "application/json"
body:
description: "Relative date/time placeholder examples"
# ISO formats (default)
currentTime: "{datetime+0d@08:00}"
today: "{date+0d}"
tomorrow: "{date+1d}"
futureDateTime: "{datetime+2d4h30m}"
pastDateTime: "{datetime-1d@15:30}"
# RFC3339 formats
currentTimeRfc: "{datetime+0d@08:00:rfc3339}"
tomorrowRfc: "{datetime+1d@13:00:rfc3339}"
# Custom formats
todayCustom: "{date+0d:MMM dd, yyyy}"
tomorrowCustom: "{date+1d:EEEE, MMMM d}"
futureCustom: "{datetime+1d@15:30:yyyy-MM-dd HH:mm:ss}"
timeOnly: "{datetime+0d@14:30:HH:mm:ss}"
- method: "GET"
path: "/examples"
response:
status: 200
headers:
Content-Type: "application/json"
body:
calendar:
- event: "Morning standup"
time: "{datetime+1d@09:00}"
date: "{date+1d:EEEE, MMM dd}"
- event: "Client meeting"
time: "{datetime+2d@14:30:rfc3339}"
date: "{date+2d}"
- event: "Weekly review"
time: "{datetime+7d@16:00}"
date: "{date+7d:MMM dd, yyyy}"
```
Reviewed-on: #6
Reviewed-by: Andreas Svanberg <andreass@dsv.su.se >
Co-authored-by: nenzen <nenzen@dsv.su.se >
Co-committed-by: nenzen <nenzen@dsv.su.se >
2025-11-03 23:38:55 +01:00
41a31ca5af
Add index-support, type hints and improve documentation ( #4 )
...
Build, Test & Checkstyle / build (push) Successful in 1m27s
- Adding the ability to use `index.yaml` in folders, so that path `/system1/users` can both be defined using `/system1/users.yaml` and `/system1/users/index.yaml`.
- Adding type hints to placeholders (for example `path: "/{id}"` with the request `/42` can return `{ "id": 42}`)
- Improve documentation
Reviewed-on: #4
Co-authored-by: nenzen <nenzen@dsv.su.se >
Co-committed-by: nenzen <nenzen@dsv.su.se >
2025-06-16 12:41:03 +02:00
e09c2cfc27
Use paths in action ( #3 )
...
Deploy Mocks to Server / upload-mocks (push) Successful in 18s
Build, Test & Checkstyle / build (push) Successful in 45s
Use paths in action and rename .github to .gitea
Reviewed-on: #3
Co-authored-by: nenzen <nenzen@dsv.su.se >
Co-committed-by: nenzen <nenzen@dsv.su.se >
2025-05-22 14:44:21 +02:00
c7ba3754b1
Deploy mocks ( #2 )
...
Deploy Mocks to Server / upload-mocks (push) Successful in 20s
Build, Test & Checkstyle / build (push) Successful in 43s
Reviewed-on: #2
Co-authored-by: nenzen <nenzen@dsv.su.se >
Co-committed-by: nenzen <nenzen@dsv.su.se >
2025-05-22 00:43:52 +02:00
f606678d7f
Fix case insensitive bug ( #1 )
...
Build, Test & Checkstyle / build (push) Successful in 39s
Fixes a bug where fields where not matched case insensitive but lower case.
Reviewed-on: #1
Reviewed-by: Andreas Svanberg <andreass@dsv.su.se >
Co-authored-by: nenzen <nenzen@dsv.su.se >
Co-committed-by: nenzen <nenzen@dsv.su.se >
2025-05-05 14:13:25 +02:00
b3909044b9
Ignore swagger js-files
2025-03-26 09:49:10 +01:00
624e3c2efc
Add env vars and clean up application.properties
2025-03-25 18:05:02 +01:00
d5d3b94e48
Init commit
2025-03-25 13:26:36 +01:00
b1f5400b8f
Add gitignore
2025-03-25 13:25:25 +01:00