Code on demand means that you can extend the behavior of the consumer of the RESTful services by serving it executable code. In a browser context, a Java applet or JavaScript counts as “code on demand”. In an API context, it may or may not be advantageous to support this constraint depending on what you are trying to do.