Skip to content

Commit

Permalink
[chore] scripts updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramachandran Nellaiyappan committed Mar 27, 2024
1 parent dad6d6c commit 1bdf10b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.springframework.data.domain.Sort;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
Expand All @@ -25,6 +26,7 @@
@RestController
@Slf4j
@RequiredArgsConstructor
@CrossOrigin(value = "*")
public class FindJourneyResource {
private final JourneyRepository journeyRepository;

Expand Down
12 changes: 9 additions & 3 deletions src/test/resources/http-scripts/journey-crud-scripts.http
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ Content-Type: application/json
"type": "Point",
"coordinates": [100.0, 0.0]
},
"journeyDate": "2024-03-27"
"journeyDate": "2021-08-04"
}


### Find Journey
GET http://localhost:8080/rest/journey/6603d70deb26b82f8448c556
Accept: application/json
GET http://localhost:8080/rest/journey/66042f634acf0200fb6db1e9
Accept: application/json


### Find all Journeys
GET http://localhost:8080/rest/journeys
Accept: application/json

0 comments on commit 1bdf10b

Please sign in to comment.