Moons
This commit is contained in:
parent
e1c5ca5be0
commit
62e287e1b0
|
@ -4,6 +4,7 @@ pom.xml.tag
|
|||
pom.xml.releaseBackup
|
||||
pom.xml.versionsBackup
|
||||
release.properties
|
||||
maven-wrapper.jar
|
||||
# Eclipse
|
||||
.project
|
||||
.classpath
|
||||
|
|
|
@ -34,8 +34,11 @@ public class Barkeeper implements ISearch, ICreate, IDelete{
|
|||
@Path("/create")
|
||||
public String createMocktail(Mocktail m) {
|
||||
//Mocktail newMock = new Mocktail(m.name, m.ingredients, m.recipe);
|
||||
this.st.addMocktail(m);
|
||||
return "klappt";
|
||||
if(this.st.addMocktail(m)) {
|
||||
return "Mocktail wurde erstellt.";
|
||||
}
|
||||
return "Mocktail konnte nicht erstellt werden.";
|
||||
|
||||
}
|
||||
|
||||
@PUT
|
||||
|
@ -44,9 +47,9 @@ public class Barkeeper implements ISearch, ICreate, IDelete{
|
|||
@Path("/update")
|
||||
public String updateMocktail(Mocktail m) {
|
||||
if(this.st.updateMocktail(m)) {
|
||||
return "sgeil";
|
||||
return "Mocktail wurde geupdatet.";
|
||||
}
|
||||
return "nichsogeil";
|
||||
return "Mocktail konnte nicht geupdatet werden...";
|
||||
}
|
||||
|
||||
@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