Commit ec31c3b
authored
Klass API continues to support path extensions for content negotiation (#408)
* Add failing test
* Configure path extension content negotiation
- This is still an actively used API feature so it must be supported
- This is deprecated in Spring so it's likely to be removed in the future
- Limit the accepted file extensions for security
* Also support header content negotiation
* Correctly document content types for operations
* Correct content types for error responses
* API documentation covers all error formats
* Remove dot from file extensions1 parent 30979b2 commit ec31c3b
File tree
19 files changed
+1139
-550
lines changed- klass-api/src
- main
- asciidoc
- java/no/ssb/klass/api
- config
- controllers
- util
- resources
- test/java/no/ssb/klass/api
- applicationtest
19 files changed
+1139
-550
lines changedLarge diffs are not rendered by default.
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments