Persistence layer for API resources