Skip to content

Commit

Permalink
First
Browse files Browse the repository at this point in the history
  • Loading branch information
Akash Muthu Manickam authored and Akash Muthu Manickam committed Apr 1, 2021
1 parent d873621 commit fc3bfe5
Show file tree
Hide file tree
Showing 31 changed files with 100 additions and 1 deletion.
Binary file added .gradle/6.3/executionHistory/executionHistory.bin
Binary file not shown.
Binary file added .gradle/6.3/executionHistory/executionHistory.lock
Binary file not shown.
Binary file added .gradle/6.3/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/6.3/fileContent/fileContent.lock
Binary file not shown.
Binary file added .gradle/6.3/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/6.3/fileHashes/fileHashes.lock
Binary file not shown.
Empty file added .gradle/6.3/gc.properties
Empty file.
Binary file added .gradle/6.3/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file added .gradle/6.3/javaCompile/javaCompile.lock
Binary file not shown.
Binary file added .gradle/6.3/javaCompile/taskHistory.bin
Binary file not shown.
Binary file added .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 2 additions & 0 deletions .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Thu Apr 01 16:05:29 IST 2021
gradle.version=6.3
Binary file added .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file added .gradle/checksums/checksums.lock
Binary file not shown.
Binary file added .gradle/checksums/md5-checksums.bin
Binary file not shown.
Binary file added .gradle/checksums/sha1-checksums.bin
Binary file not shown.
Empty file added .gradle/vcs-1/gc.properties
Empty file.
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules/Jenkins_Practice.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ dependencies {

test {
useJUnitPlatform()
}
bootJar{
enabled=false
}
jar{
enabled=true
}
Binary file modified build/classes/java/main/com/tg/ThemeParkApplication.class
Binary file not shown.
Binary file not shown.
Binary file modified build/classes/java/main/com/tg/entity/ThemeParkRide.class
Binary file not shown.
Binary file not shown.
11 changes: 10 additions & 1 deletion src/main/java/com/tg/controller/ThemeParkRideController.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,14 @@ public Iterable<ThemeParkRide> getRides() {
public ThemeParkRide getRide(@PathVariable long id){
return themeParkRideRepository.findById(id).orElseThrow(() -> new ResponseStatusException(HttpStatus.NOT_FOUND, String.format("Invalid ride id %s", id)));
}

@PostMapping(value = "/ride", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public ThemeParkRide createRide(@Valid @RequestBody ThemeParkRide themeParkRide) {
return themeParkRideRepository.save(themeParkRide);
}

@DeleteMapping(value = "/ride/{id}")
public void deleteRide(@PathVariable long id){
themeParkRideRepository.deleteById(id);
}

}

0 comments on commit fc3bfe5

Please sign in to comment.