Moons
This commit is contained in:
parent
e1c5ca5be0
commit
62e287e1b0
|
@ -4,6 +4,7 @@ pom.xml.tag
|
||||||
pom.xml.releaseBackup
|
pom.xml.releaseBackup
|
||||||
pom.xml.versionsBackup
|
pom.xml.versionsBackup
|
||||||
release.properties
|
release.properties
|
||||||
|
maven-wrapper.jar
|
||||||
# Eclipse
|
# Eclipse
|
||||||
.project
|
.project
|
||||||
.classpath
|
.classpath
|
||||||
|
|
|
@ -34,8 +34,11 @@ public class Barkeeper implements ISearch, ICreate, IDelete{
|
||||||
@Path("/create")
|
@Path("/create")
|
||||||
public String createMocktail(Mocktail m) {
|
public String createMocktail(Mocktail m) {
|
||||||
//Mocktail newMock = new Mocktail(m.name, m.ingredients, m.recipe);
|
//Mocktail newMock = new Mocktail(m.name, m.ingredients, m.recipe);
|
||||||
this.st.addMocktail(m);
|
if(this.st.addMocktail(m)) {
|
||||||
return "klappt";
|
return "Mocktail wurde erstellt.";
|
||||||
|
}
|
||||||
|
return "Mocktail konnte nicht erstellt werden.";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
|
@ -44,9 +47,9 @@ public class Barkeeper implements ISearch, ICreate, IDelete{
|
||||||
@Path("/update")
|
@Path("/update")
|
||||||
public String updateMocktail(Mocktail m) {
|
public String updateMocktail(Mocktail m) {
|
||||||
if(this.st.updateMocktail(m)) {
|
if(this.st.updateMocktail(m)) {
|
||||||
return "sgeil";
|
return "Mocktail wurde geupdatet.";
|
||||||
}
|
}
|
||||||
return "nichsogeil";
|
return "Mocktail konnte nicht geupdatet werden...";
|
||||||
}
|
}
|
||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
package de.hsos.swa.ma.api.al;
|
||||||
|
|
||||||
|
import io.quarkus.jsonb.JsonbConfigCustomizer;
|
||||||
|
import javax.inject.Singleton;
|
||||||
|
import javax.json.bind.JsonbConfig;
|
||||||
|
import javax.json.bind.serializer.JsonbSerializer;
|
||||||
|
|
||||||
|
@Singleton
|
||||||
|
public class JsonBSerializer implements JsonbConfigCustomizer{
|
||||||
|
|
||||||
|
public void customize(JsonbConfig config) {
|
||||||
|
//config.withSerializers(new FooSerializer());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue