Skip to content

Azure Function based REST API that returns fake data and sometimes fails. Designed for testing API error handling code.

License

Notifications You must be signed in to change notification settings

lloydjatkinson/unstable-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unstable-rest-api

Intentionally unstable REST API (Azure Function)


This API returns fake data (Lorem Ipsum) but with a twist. It is unstable in order to aid in the design/testing of API error handling code.

The API currently returns these HTTP status codes:

HTTP Status Code Body Probability
200 OK JSON containing lorem ipsum text 60%
202 Accepted NA 20%
400 Bad Request NA 15%
500 Internal Server Error NA 5%

There is a 50/50 chance the API will either respond right away or will wait before responding.

About

Azure Function based REST API that returns fake data and sometimes fails. Designed for testing API error handling code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages