https://github.com/jonathan-foucher/spring-boot-http-example
Examples of HTTP interactions with spring-boot
https://github.com/jonathan-foucher/spring-boot-http-example
http java spring-boot
Last synced: about 1 year ago
JSON representation
Examples of HTTP interactions with spring-boot
- Host: GitHub
- URL: https://github.com/jonathan-foucher/spring-boot-http-example
- Owner: jonathan-foucher
- Created: 2025-03-09T16:05:43.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-09T20:02:39.000Z (about 1 year ago)
- Last Synced: 2025-03-09T21:18:10.407Z (about 1 year ago)
- Topics: http, java, spring-boot
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Introduction
This project is an example of HTTP interactions with Spring Boot.
A movie API project will be taken as example to be called through by the example project.
## Run the project
### Application
Start both movie-api and http-example Spring boot projects, then you can try out the HTTP api.
Get a movie by id
```
curl --request GET \
--url http://localhost:8090/http-api-example/movies/22
```
Save a movie
```
curl --request POST \
--url http://localhost:8090/http-api-example/movies \
--header 'content-type: application/json' \
--data '{
"id": 28,
"title": "Some title",
"release_date": "2022-02-04"
}'
```