Code Monkey home page Code Monkey logo

openapi-mocker's Introduction

OpenAPI Mocker (Still Under Development)

This project demonstrates how to create a dynamic API mocker using Spring Boot and OpenAPI specifications.

Table of Contents

Overview

The OpenAPI Mocker project showcases how to build a Spring Boot application that dynamically handles API requests based on OpenAPI specifications. It also demonstrates how to generate fake data for responses using the Faker library.

Getting Started

Prerequisites

  • Java 11 or later
  • Maven

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/openapi-mocker.git
    cd openapi-mocker
    

Running the Application

Build the project:

  • mvn clean install

Run the application:

  • mvn spring-boot:run

The application will start and listen on http://localhost:8080.

Usage

Dynamic API Handling

The application dynamically handles API requests based on the provided OpenAPI specifications. You can send requests to paths defined in the OpenAPI document, and the application will respond accordingly.

Generating Fake Data

The application uses the Faker library to generate fake data for responses. It reads the OpenAPI schema and generates appropriate fake data based on the schema's properties.

Contributing

Contributions are welcome! Feel free to open issues and submit pull requests.

openapi-mocker's People

Contributors

viswanathareddy04 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.