Categories
Featured iPhone Development Resources iOS Development Libraries Open Source iOS Libraries And Tools Swift

Kakapo – Open Source Swift Library For Dynamically Mocking Server Responses

Kakapo is an open source Swift based library allowing you to mock server behaviors and responses from Devlucky.

Kakapo allows for dynamic mocking library with an extensive feature set for replicating backend apis and logic. Kakapo gives complete control and does not rely on recorded requests. JSONAPI is fully supported.

This code snippet shows how one could create a set of dynamic responses using a database with Kakapo:

let db = KakapoDB()
db.create(User.self, number: 20)

router.get("/users") { request in
  return db.findAll(User.self)
}

You can find Kakapo on Github here.

A great library for mocking server responses.