diff --git a/src/main/java/org/ntlab/acanthus_server/models/Gallery.java b/src/main/java/org/ntlab/acanthus_server/models/Gallery.java index af1f83c..e155267 100644 --- a/src/main/java/org/ntlab/acanthus_server/models/Gallery.java +++ b/src/main/java/org/ntlab/acanthus_server/models/Gallery.java @@ -1,5 +1,7 @@ package org.ntlab.acanthus_server.models; +import org.ntlab.acanthus_server.entities.Animation; + import java.util.*; /* @@ -24,6 +26,6 @@ } - public HashMap getMap(){return animationMap;} + public HashMap getMap(){return animationHashMap;} } diff --git a/src/main/java/org/ntlab/acanthus_server/resources/gallery/GalleryRest.java b/src/main/java/org/ntlab/acanthus_server/resources/gallery/GalleryRest.java index ce1980c..59f4a89 100644 --- a/src/main/java/org/ntlab/acanthus_server/resources/gallery/GalleryRest.java +++ b/src/main/java/org/ntlab/acanthus_server/resources/gallery/GalleryRest.java @@ -1,5 +1,6 @@ package org.ntlab.acanthus_server.resources.gallery; +import org.ntlab.acanthus_server.entities.Animation; import org.ntlab.acanthus_server.models.Gallery; import org.springframework.stereotype.Component; @@ -16,11 +17,11 @@ @GET @Produces(MediaType.APPLICATION_JSON) - public Collection getGallery(){return gallery.getMap().values();} + public Collection getGallery(){return gallery.getMap().values();} @POST @Produces(MediaType.APPLICATION_JSON) - public void createAnimetion(@FormParam("aid") Integer aid , @FormParam("name") String name ,@FormParam("token") String token{ + public void createAnimation(@FormParam("aid") Integer aid , @FormParam("name") String name ,@FormParam("token") String token){