Sha256: c0a706e08baa48fb3a526ab9241ec254f0623a15750a462cb946484b40aa7a2c
Contents?: true
Size: 1.71 KB
Versions: 9
Compression:
Stored size: 1.71 KB
Contents
{"resource":"Content Folder","http_method":"POST","route":"/content_folder","description":"returns status 422 when missing document id and child_folders","explanation":null,"parameters":[{"require":true,"scope":"content_folder","name":"folder_id","description":"folder id"},{"require":true,"scope":"content_folder","name":"label","description":"folder label"},{"require":true,"scope":"content_folder","name":"document_ids","description":"array of document ids associated with folder"},{"require":true,"scope":"content_folder","name":"child_folders","description":"array of child folder hashes"}],"requests":[{"request_method":"POST","request_path":"/content_folder","request_body":"content_folder[folder_id]=folder+id&content_folder[label]=label&content_folder[document_ids]&content_folder[child_folders]","request_headers":{"Host":"example.org","Content-Type":"application/x-www-form-urlencoded","Cookie":""},"request_query_parameters":{},"request_content_type":"application/x-www-form-urlencoded","response_status":422,"response_status_text":"Unprocessable Entity","response_body":"{\"base\":[\"Either child_folders or document_ids are required\"]}","response_headers":{"Content-Type":"application/json; charset=utf-8","X-UA-Compatible":"IE=Edge,chrome=1","Cache-Control":"no-cache","X-Request-Id":"0004a0c05dcfda6a5bda5460fec8b87d","X-Runtime":"0.016000","Content-Length":"62"},"response_content_type":"application/json; charset=utf-8","curl":"curl \"http://localhost:3005/content_folder\" -d 'content_folder[folder_id]=folder+id&content_folder[label]=label&content_folder[document_ids]&content_folder[child_folders]' -X POST \\\n\t-H \"Host: example.org\" \\\n\t-H \"Content-Type: application/x-www-form-urlencoded\" \\\n\t-H \"Cookie: \""}]}
Version data entries
9 entries across 9 versions & 1 rubygems