0 rest code examples