Skip to content

karthikmarala/issue-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 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 List12

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

Get a html page

Request curl

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

#check jenkins integration 1

About

issue-generator app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •