Skip to content

JSONPlaceholder: a “mock” RESTful API for Learning/Testing

When I’m learning new things, I always like to have real, simple examples that work. This makes for easier progress and also gives a good feeling that I’m on the right track. As I was learning how to work with APIs in Java, I needed some simple API to call to check that I was doing things right.

And I found the perfect match for this: JSONPlaceholder. This simple API supports all verbs (GET, POST, PUT, PATCH, DELETE and OPTIONS). It contains mock data that can be fetched, updated, and deleted. And best of all, requires no registration or special configuration. Just call the endpoints and things work.

Can’t be more grateful to these guys. Thanks!

Published inThoughts

Be First to Comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.