From 095cd6676db241973c51d637e0aed2535277d557 Mon Sep 17 00:00:00 2001 From: Isuru Weerasooriya Date: Fri, 4 Jan 2019 20:41:38 -0500 Subject: [PATCH] Feature - Added support for HTTP DELETE method (#12) --- .gitignore | 3 + docs/release/api-guide.html | 184 ++++++++++++++---- pom.xml | 2 +- src/main/asciidocs/api-guide.adoc | 48 ++++- .../parrot/rest/common/PhraseUtility.java | 44 +++++ .../rest/controller/ForgetController.java | 50 +++++ .../rest/controller/HealthController.java | 4 - .../rest/controller/ListenController.java | 3 - .../rest/controller/TalkController.java | 36 +--- .../rest/repository/PhraseRepository.java | 4 +- .../rest/repository/PhraseRepositoryBase.java | 1 + .../repository/PhraseRepositoryMapImpl.java | 6 + .../repository/PhraseRepositoryRedisImpl.java | 12 +- .../parrot/rest/service/PhraseService.java | 2 + .../rest/service/PhraseServiceImpl.java | 14 +- src/main/resources/application.properties | 7 +- .../parrot/rest/common/FixtureUtility.java | 23 +++ .../rest/controller/ForgetControllerTest.java | 56 ++++++ .../rest/controller/ListenTalkMapIT.java | 139 +++++++------ .../rest/controller/TalkControllerTest.java | 68 +++---- .../docs/ParrotRestDocumentationTest.java | 86 +++++--- .../rest/repository/HashOperationsMock.java | 8 +- .../repository/PhraseRepositoryBaseTest.java | 1 + .../PhraseRepositoryRedisImplTest.java | 17 +- 24 files changed, 592 insertions(+), 226 deletions(-) create mode 100644 src/main/java/parrot/rest/common/PhraseUtility.java create mode 100644 src/main/java/parrot/rest/controller/ForgetController.java create mode 100644 src/test/java/parrot/rest/common/FixtureUtility.java create mode 100644 src/test/java/parrot/rest/controller/ForgetControllerTest.java diff --git a/.gitignore b/.gitignore index eb53dc1..ccaaf8a 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,6 @@ nbdist/ .DS_Store **.swap ~ + +# Eclipse # +/bin/ diff --git a/docs/release/api-guide.html b/docs/release/api-guide.html index 3d6d68a..df29dff 100644 --- a/docs/release/api-guide.html +++ b/docs/release/api-guide.html @@ -4,7 +4,7 @@ - + Parrot-REST API Guide - +