Skip to content

Latest commit

 

History

History
65 lines (53 loc) · 2.08 KB

README.md

File metadata and controls

65 lines (53 loc) · 2.08 KB

Translator AI Application

This Spring Boot application provides endpoints for AI-assisted language processing, including spelling and grammar correction and text translation. It utilizes the services provided by CorrectorService and TranslatorService to interact with an AI assistant.

Table of Contents

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/miharyjoe/translator-ai-api
  2. Go to the file :

    cd translator-ai-api
  3. Compile to jar the application:

    mvn clean install
  4. Launch the application:

    java -jar target/springai-0.0.1-SNAPSHOT.jar

Endpoints

This is the URL of the application:

```bash
https://translator-corrector-ai.onrender.com
```

Translator-endpoint:

```bash
GET https://translator-corrector-ai.onrender.com/ai/translator?translate=french
```
  • Endpoint: /ai/translator
  • Method: GET
Parameters:
  • in request param: translate (required): The target language into which the text should be translated.
  • in request body: sentences (required): The sentences to be translated into the specified language.

Corrector-endpoint:

```bash
GET https://translator-corrector-ai.onrender.com/ai/corrector?language=english
```
  • Endpoint: /ai/corrector
  • Method: GET
Parameters:
  • In request param: language (required): The language in which the correction response should be provided. (Default value: "english" if not specified)
  • in request body: sentences (required): The sentences containing spelling and grammar mistakes to be corrected.

Health-check-endpoint

  • Endpoint: /ping

  • Method: GET

  • Description: A simple health check endpoint that returns "pong" to indicate that the application is running.