testing post api for flipflop