adding api and qr code service