start to define swagger plugin using swagger core api