Basic tips while developing REST in java