Giter Club home page Giter Club logo

springbootsimplecrud's Introduction

Simple Crud Spring Boot

  • Java Version : 11
  • Spring Boot Version : 2.4.5

In this repository, I have prepared a simple CRUD system that will be an example for you. I chose PostgreSQL as the database. Please the edit the application.yaml file to your own server settings. The route structure is as follows.

Method Url Description
Get http://localhost:8080/categories Get All Categories
Post http://localhost:8080/categories Create New Category
Get http://localhost:8080/categories/categoryId Get Category By Id
Put http://localhost:8080/categories/categoryId Update Category By Id
Delete http://localhost:8080/categories/categoryId Delete Category By Id
Get http://localhost:8080/categories&sort=id Sort returns categories by id
Get http://localhost:8080/categories&sort=id,asc Sort returns categories by id with asc
Get http://localhost:8080/categories&sort=id,desc Sort returns categories by id with desc
Get http://localhost:8080/categories&sort=name Sort returns categories by name
Get http://localhost:8080/categories&sort=name,asc Sort returns categories by name with asc
Get http://localhost:8080/categories&sort=name,desc Sort returns categories by name with desc

#application.yml

server:
  error:
    include-message: always
    include-binding-errors: always

spring:
  application:
    name: SimpleCrud
  jpa:
    hibernate:
      ddl-auto: update
  datasource:
    hikari:
      connection-timeout: 20000
      maximum-pool-size: 5
    url: jdbc:postgresql://localhost:5432/postgres
    username: postgres
    password: postgres

springbootsimplecrud's People

Contributors

mehmetnuri avatar

Stargazers

 avatar

Watchers

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