https://github.com/waterflow80/spring-rest-api
A simple Hello World REST API using Sring Boot framework.
https://github.com/waterflow80/spring-rest-api
Last synced: 3 months ago
JSON representation
A simple Hello World REST API using Sring Boot framework.
- Host: GitHub
- URL: https://github.com/waterflow80/spring-rest-api
- Owner: waterflow80
- License: gpl-3.0
- Created: 2023-02-28T09:48:11.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-28T12:08:41.000Z (about 2 years ago)
- Last Synced: 2024-12-27T20:16:26.073Z (5 months ago)
- Language: Java
- Size: 76.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spring-rest-api
A simple Hello World REST API using Sring Boot framework.## Languages and Tools
- Java 17
- Maven
- Spring Web
- Postman## Description
- The project contains a greeting service that, given a certain URL, returns back a greeting message in a JSON format.
- Example:
Server: localhost. Port: 8082. Default-end-point: '/api'.
- URL: localhost:8082/api/greeting ==>
{
"id": 4,
"content": "Hello, World!"
}
- URL: localhost:8082/api/greeting?name=Maria =>
{
"id": 4,
"content": "Hello, Maria!"
}
## Testing the service using Postman