Coder Social home page Coder Social logo

ssmtariq / 2021.6-job-manager-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 54 KB

A dynamic Java Job schedular Spring Boot REST API that supports several endpoints to perform create, update, delete, view, pause, and resume operations for a job. This Job Manager App is built using QUARTZ library, using this jobs like sending bulk emails, loading data in Data Warehouse can be done instantly or scheduled for future execution.

Java 100.00%
java quartz-scheduler quartz spring spring-boot rest-api javadoc javadoc-documentation junit5

2021.6-job-manager-app's Introduction

Job Manager

A Java Dynamic Job Scheduler APP

How To Start

After executing the following command, the application will start on localhost:8080

  • Using maven
> mvnw clean spring-boot:run

Features

Create Job
Endpoint : /job-manager/groups/group/jobs
Method : POST
Status : 201: Created
Body :

{
  "name": "ExpenseManager",
  "subject": "Daily Expense Report",
  "messageBody": "Sample Expense report",
  "to": [
    "[email protected]"
  ],
  "cc": [
    "[email protected]"
  ],
  "bcc": [
    "[email protected]"
  ],
  "triggers": [
    {
      "name": "ExpenseManager",
      "group": "email",
      "fireTime": "2021-06-28T17:21:25.000"
    }
  ]
}

Content-Type: application/json

View Job
Endpoint : /job-manager/groups/group/jobs/name
Method : GET
Status : 200: Ok
Body : NULL
Accept : application/json

Edit Job
Endpoint : /job-manager/groups/group/jobs/name Method : PUT
Status : 204: No Content
Body :

{
  "name": "ExpenseManager",
  "subject": "Daily Fuel Report",
  "messageBody": "Sample Quartz report",
  "to": [
    "[email protected]",
    "[email protected]"
  ],
  "cc": [
    "[email protected]"
  ],
  "bcc": [
    "[email protected]"
  ]
}

Content-Type: application/json

Pause Job (Update)
Endpoint : /job-manager/groups/group/jobs/name/pause
Method : PATCH
Status : 204: No Content
Body : NULL
Content-Type: */*

Resume Job (Update)
Endpoint : /job-manager/groups/group/jobs/name/resume
Method : PATCH
Status : 204: No Content
Body : NULL
Content-Type: */*

Delete Job
Endpoint : /job-manager/groups/group/jobs/name
Method : DELETE
Status : 204: No Content
Body : NULL
Content-Type: */*

2021.6-job-manager-app's People

Contributors

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