Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* This controller should return all known cats as JSON and support CRUD on them
*/
@RestController
class CatsController {
// We'll save the cats in memory for the sake of excercise
private val cats = ConcurrentHashMap<UUID, Cat>()
// More code to come
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.