Giter VIP home page Giter VIP logo

kaiburr-task-2-spring-server's Introduction

Kaiburr-Task-2-spring-server

Prerequisites

  • Java
  • Maven
  • Spring Boot (Framework)
  • MongoDB

Dependencies

  • Spring Boot Starter Data MongoDB
  • Spring Boot Starter Web
  • Spring Boot Starter Tomcat
  • SpringFox Swagger2
  • SpringFox Swagger UI
  • Jackson Datatype ThreeTenBP
  • Bean Validation API Support
  • Spring Boot Starter Test
  • Jakarta XML Binding API

Build using Online Swagger Editor :: swagger.yaml

Endpoint Description HTTP Method Endpoint
Create a Server PUT /servers/createServer
- Accepts "server" object in JSON format in the request body.
Get Servers GET /servers/getServer
- Returns a list of "server" objects.
Get Server by ID GET /servers/getServer?id=<ID>
- Returns a "server" object matching with ID.
Get Servers by Name GET /servers/getServer?name=<Name>
- Returns a list of "server" objects matching with Name.
Delete Server DELETE /servers/deleteServer?id=<ID>
- Deletes a "server" object matching with ID.

Consuming APIs

A SwaggerUI is generated automatically at http://127.0.0.1:8080/servers/ which Documentsthe API and gives UI to consume the same.

Screenshots

SwaggerEditor

SwaggerDoc

SwagGenServ

createServer

deleteServer

Swagger generated server

Spring Boot Server

Overview

This server is generated using swagger-codegen and the OpenAPI-Spec. It demonstrates building a Swagger-enabled server in Java using the Spring Boot framework, with springfox as the underlying library for integrating Swagger.

To start the server as a simple Java application, navigate to http://localhost:8080/

kaiburr-task-2-spring-server's People

Contributors

mrparam07 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.