{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":411,"path":"api-reference/rest-api-explorer/c_ScriptedRESTAPIExamples.md","title":"Scripted REST API examples","bundle":null,"doc_type":null,"release":"australia","body":"\n# Scripted REST API examples\n\nMutliple examples are available demonstrating how to create and use scripted REST APIs.\n\n-   **[Scripted REST API example - script samples](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/r_ScriptedRESTServiceScriptExamples.md)**  \nThese examples demonstrate how to create various resource scripts for a scripted REST API.\n-   **[Scripted REST API example - streaming vs object serialization](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/r_ScriptedRESTExampleStreamVsLO.md)**  \nThese examples demonstrate how to send a JSON response using streaming and using default object serialization.\n-   **[Scripted REST API example - streaming file attachments](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/r_ScriptedRESTExampleStreamAttach.md)**  \nThis example demonstrates how to send an image attachment to a requesting user as a binary stream.\n\n**Parent Topic:**[Scripted REST APIs](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_CustomWebServices.md)\n\n"}}