Refactor API response descriptors to use resource classes
- Updated response descriptors in various endpoints to utilize specific resource classes instead of generic JsonResponse. - Changed response types for friendship, guild, party, and support issue endpoints to their respective resource classes. - Incremented version number in manifest.json to 0.5.3 for the new changes.
This commit is contained in:
+5
-16
@@ -47,21 +47,14 @@ javadoc {
|
||||
|
||||
// Adds the Hytale server as a build dependency, allowing you to reference and
|
||||
// compile against their code without bundling it. When a local install is
|
||||
// present we compile and run against that jar directly so there is no dependency
|
||||
// on the Hytale Maven repositories. In CI (no local install) the Maven artifact
|
||||
// is used together with an explicit Gson dep (bundled in the server at runtime).
|
||||
// present, we still use its jar for launching the server in IDE run configs.
|
||||
dependencies {
|
||||
compileOnly("com.hypixel.hytale:Server:$hytale_build")
|
||||
if (hasHytaleHome) {
|
||||
def serverJar = files("$hytaleHome/install/$patchline/package/game/latest/Server/HytaleServer.jar")
|
||||
compileOnly(serverJar)
|
||||
runtimeOnly(serverJar)
|
||||
} else {
|
||||
compileOnly("com.hypixel.hytale:Server:$hytale_build")
|
||||
compileOnly("com.google.gson:gson:2.11.0")
|
||||
runtimeOnly(files("$hytaleHome/install/$patchline/package/game/latest/Server/HytaleServer.jar"))
|
||||
}
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
|
||||
testImplementation("com.google.code.gson:gson:2.11.0")
|
||||
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
||||
|
||||
// Your dependencies here
|
||||
}
|
||||
|
||||
repositories {
|
||||
@@ -107,10 +100,6 @@ tasks.named('build') {
|
||||
dependsOn 'shadowJar'
|
||||
}
|
||||
|
||||
tasks.named('test') {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
if (hasHytaleHome) {
|
||||
// Create the working directory to run the server if it does not already exist.
|
||||
def serverRunDir = file("$projectDir/run")
|
||||
|
||||
Reference in New Issue
Block a user