Skip to content

keerthibingi/issue-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestApp

This rest app you can use for generating log and metric data using api as well as UI also for

  • API List
    • /greeting
    • /issues
    • /dogcount
    • /catcount
    • /logs?type=''
    • /issue?type=''
    • /warn?type=''

Get a html page

Request

GET /greeting/

curl -i -H 'Accept: application/json' http://localhost:8080/greeting/

GET /`

curl -i -H 'Accept: application/json' http://localhost:8080

Response

HTTP/1.1 200 OK
HTML Page

Rest APIs

Request

GET /dogcount

curl -i -H 'Accept: application/json' http://localhost:8080/dogcount

Response

{ "dogCount": 16 }

Request

GET /catcount

curl -i -H 'Accept: application/json' http://localhost:8080/catcount

Response

{ "catCount": 20 }

Request

GET /issues/

curl -i -H 'Accept: application/json' http://localhost:8080/issues?issue='INFO'

GET /logs?type='INFO'

curl -i -H 'Accept: application/json' http://localhost:8080/logs?type='INFO'

list of request param values 
   - CRITICAL
   - DEBUG
   - ERROR
   - WARN
   - INFO

Request for specific errors

GET /issue?type='OUT_OF_MEMORY'

curl -i -H 'Accept: application/json' http://localhost:8080/issue?type='OUT_OF_MEMORY'

list of request param values 
   - OUT_OF_MEMORY
   - STACK_OVERFLOW_ERROR
   - FILE_NOT_FOUND
   - ARRAY_INDEX_OUT_OF_BOUND
   - NULL_POINTER
   - STRING_INDEX_OUT_OF_BOUND
   - NO_CLASS_DEF_FOUND
   - NO_SUCH_METHOD_FOUND
   - NUMBER_FORMAT
   - ILLEGAL_ARGUMENT
   - CLASS_NOT_FOUND

Request for specific warnings

GET /warn?type='GARBAGE_COLLECTION'

curl -i -H 'Accept: application/json' http://localhost:8080/warn?type='GARBAGE_COLLECTION'

list of request param values 
   - GARBAGE_COLLECTION
   - DEPRECATED_API
   - VERSION

description

will create a log of type issue valid input for issue are CRITICAL,ERROR,DEBUG,WARN,INFO defalult log will be of type info

slack demogghd ghh

About

issue-generator app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 64.7%
  • HTML 29.6%
  • CSS 3.1%
  • Dockerfile 1.9%
  • Shell 0.7%