Giter Club home page Giter Club logo

test-java's Introduction

Install

  • MySQL 5.7
  • Java 8, Spring Boot 2.2.1
  • IDE: IntelliJ
  • Git
  • Maven + Hibernate + Lombok

Create DB

spring.datasource.url = jdbc:mysql://localhost:3306/to_do_db?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false
spring.datasource.username = root
spring.datasource.password = 1234
Field Type Null Key Extra
id bigint(20) NO PRI auto_increment
name varchar(255) YES
start long YES
end long YES
status int(11) YES

Exception

  • Validate Null/Blank

Model

  • RequestModel
  • ResponseModel
  • Entity

Repository

  • Provide method: save, update, find, findById,...

Controller

  • API get All Todo work with paging:
    • URL: .../api/get-all-work
    • Method: POST
    • Body:
      {
          "page": 1, //page value, from: 0,1,2,...
          "size": 5, //number record each page
          "field_sort": "name" //field sort by: id, name, start, end, status
       }
      
  • API create new Todo work: api/create-new-work
    • URL: .../api/create-new-work
    • Method: POST
    • Body:
      {
          "work_name": "work 8", //name
          "starting_date": "01/02/2021 12:30:00", //time, format: dd/MM/yyyy HH:mm:ss
          "ending_date": "10/02/2021 12:30:00", //time, format: dd/MM/yyyy HH:mm:ss
          "status": 1 //Status: 1 2 3
       }
      
  • API update Todo work: api/update-work
    • URL: .../api/update-work
    • Method: POST
    • Body:
      {
           "work_name": "work 8", //name
           "starting_date": "01/02/2021 12:30:00", //time, format: dd/MM/yyyy HH:mm:ss
           "ending_date": "10/02/2021 12:30:00", //time, format: dd/MM/yyyy HH:mm:ss
           "status": 1 //Status: 1 2 3
       }
      
  • API delete Todo work by ID: api/delete-work/{id}
    • URL: .../api/delete-work/{id}
    • Method: DELETE
    • Body: none

test-java's People

Contributors

tunh-dev avatar

Stargazers

Viết Nhân 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.