move api specs to serializer specs