This document discusses metamodeling and metaprogramming approaches for developing client libraries for REST APIs. It presents a metamodel for describing REST APIs and shows how annotations in the xTend language can be used as an alternative internal DSL (domain-specific language) to generate code for a REST client library from descriptions of API requests and resource types. Active annotations are processed by custom compilers and can generate platform-specific code while providing static type safety. Both metamodeling and metaprogramming through active annotations are presented as model-driven approaches for developing web applications and REST client code.