Sample code in java using rest API for content server

Options

Please help with sample code in Java or C# for adding document with categories and attribute in content server 10.5 using REST API.