Endpoints serialization.