update api doc and fronted