Skip to content

Commit

Permalink
Remove plain-text request and response bodies in favour of JSON forma…
Browse files Browse the repository at this point in the history
…t + better status/error messages
  • Loading branch information
Niels-NTG committed Feb 12, 2023
1 parent e430285 commit 749e026
Show file tree
Hide file tree
Showing 11 changed files with 480 additions and 786 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# GDMC-HTTP 1.0.0 (Minecraft 1.19.2)
- BREAKING: JSON-formatted NBT-like data is no longer supported in request bodies. Use [SNBT notation](https://minecraft.fandom.com/wiki/NBT_format#SNBT_format) instead.
- BREAKING: Properties containing NBT values in JSON responses are no longer formatted as JSON, but as [SNBT strings](https://minecraft.fandom.com/wiki/NBT_format#SNBT_format).
- BREAKING: Plain-text formatted responses have been removed in favour of JSON.
- BREAKING: Consistent error messages.
- BREAKING: Plain-text request bodies are no longer accepted (except for `POST /command`). JSON-formatted request bodies are expected instead.
- FIX: Improved performance!

# GDMC-HTTP 0.7.6 (Minecraft 1.19.2)
- FIX: `GET /biomes` now returns an empty string for the biome ID if the requested position is outside of the vertical boundaries of the world.
- FIX: Typo in error message `POST /structure` handler.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'net.minecraftforge.gradle' version '5.1.+'
}

version = '0.7.6'
version = '1.0.0'
group = 'com.nilsgawlik.gdmchttp' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'gdmchttp'

Expand Down
Loading

0 comments on commit 749e026

Please sign in to comment.