amithkumarg / restapi-springboot-jpa

REST Api with spring-boot & jpa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This project exposes REST Api built on spring boot with jpa

Technology Stack

  • Spring-Boot
    • Spring-Boot-JPA
    • Apache Tomcat
  • Lombok
  • H2 Database

Supported Service calls

  • /events [GET]
    - get all events & its inventory details

  • /events/{eventcode} [GET]
    - get only request event & its inventory detail

  • /events [POST]
    - get only list of events matching the provided filters

REQUEST

{
  "type": "object",
  "required": [],
  "properties": {
    "eventCode": {
      "description": "filter by event code",
      "type": "string"
    },
    "aisle": {
      "description": "filter by aisle seats ?",
      "type": "boolean"
    },
    "available": {
      "description": "filter by available seats ?",
      "type": "boolean"
    },
    "seatType": {
      "description": "filter by seat type (adult|child) ?",
      "type": "string"
    }
  }
}


RESPONSE
	int (Count based on supplied filter)

Donation

If this project help you reduce time to develop, you can buy me a cup of coffee :)

paypal

About

REST Api with spring-boot & jpa

License:Apache License 2.0


Languages

Language:Java 87.6%Language:TSQL 8.2%Language:Kotlin 3.3%Language:HTML 1.0%