Skip to content

tamerlankayak/Reactive-Spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactive-Spring

Java_programming_language_logo svg spring-boot-logo

This is a simple example API built using Spring Boot and WebFlux, demonstrating the concept of reactive programming. The API provides endpoints for fetching data asynchronously using the reactive programming model.

Prerequisites

Before running the API, make sure you have the following prerequisites installed:

  • Java Development Kit (JDK) 8 or higher
  • Maven or Gradle (depending on your preference)

Getting Started

To get started with the API, follow these steps:

  1. Clone the repository to your local machine:

    git clone <repository-url>
  2. Navigate to the project directory:

    cd reactive-programming-example-api
  3. Build the project using Maven or Gradle:

    For Maven:

    mvn clean install

    For Gradle:

    gradle clean build
  4. Run the API:

    For Maven:

    mvn spring-boot:run

    For Gradle:

    gradle bootRun
  5. Once the API is running, you can access the endpoints using the base URL http://localhost:8080.

API Endpoints

The API provides the following endpoints:

Fetch Data

  • Endpoint: /api/v1/students
  • Method: GET
  • Description: Fetches the data from a reactive data source.
  • Example Request:
    GET /data HTTP/1.1
    Host: localhost:8080
  • Example Response:
    {
      "id": 1,
      "firstname": "Tamerlan",
      "lastname":"Mustafayev",
      "age":29
    }

Contributing

Contributions to this project are welcome. If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgments

This API is inspired by the concept of reactive programming and uses the Spring Boot and WebFlux frameworks. Special thanks to the open-source community for their contributions to these frameworks.

Releases

No releases published

Packages

No packages published

Languages