This commit is contained in:
Sabelus 2020-11-02 17:01:38 +01:00
parent e1c5ca5be0
commit 62e287e1b0
3 changed files with 23 additions and 4 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@ pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
release.properties
maven-wrapper.jar
# Eclipse
.project
.classpath

View File

@ -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

View File

@ -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());
}
}