https://github.com/vero-code/validator-api
https://github.com/vero-code/validator-api
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vero-code/validator-api
- Owner: vero-code
- Created: 2024-02-26T08:28:56.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-26T15:06:56.000Z (about 2 years ago)
- Last Synced: 2025-04-03T20:33:24.955Z (12 months ago)
- Language: Java
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Universal Data Validator API
## Description ๐
This RESTful web service, built with Spring Boot, offers a flexible data validation framework supporting multiple languages for easy integration with web and mobile apps. Initially focusing on electric vehicle charging station data, its adaptable architecture is suitable for various data types and domains.
## Features ๐
- Validation of charging station data
- Multilingual support (English, French)
- RESTful API for integration
## Technologies ๐
- Java 21
- Spring Boot 3.2.3
- Maven 4.0.0
## Installation ๐ง
1. **Clone the repository to your local machine**:
```
https://github.com/vero-git-hub/validator-api.git
```
2. **Build the project with Maven**:
```
mvn clean install
```
3. **Start the service using Maven**:
```
mvn spring-boot:run
```
The API is now accessible at http://localhost:8080.
## Usage ๐
Send a POST request to /api/charging-stations with a JSON containing the data (for example, an electric vehicle charging station):
```
{
"id": 1,
"title": "Central Charging Station",
"description": "Available 24/7",
"address": "123 Main St, Anytown, AT 12345",
"geoCoordinates": {
"latitude": 50.1109,
"longitude": 8.6821
},
"isPublic": true,
"connectors": [
{
"id": 1,
"type": "CCS",
"maxPower": 150
}
]
}
```
## Testing ๐งช
For testing the API, use Postman or any other tool for HTTP requests. To check multilingual support, set the Accept-Language header.
## License ๐
ยฉ Copyright vero-git-hub, 2024. All rights reserved. Use, copying, modification and distribution of this work is possible only with the express permission of the author.