It's only sample project use RealamSwift and Alamofire. Long time this repo is updated.
Note:
https://blog.hyphe.me/realm-and-alamofire-in-a-effective-harmony/
https://www.appcoda.com/realm-database-swift/
#Realm doesn't support polymorphic queries yet.
So you would need to query for both object types separately. http://stackoverflow.com/questions/32809907/merge-inheritance-realm-objects-together