Use plotly to jsonify graphs and make a rest api

Hi everyone.
I am new to Plotly. I have a following question:
My organization has one big data warehouse. I can access to database by Rest api. I get data and do some analyses. I need to share back to my organization’s portal results, including graphs, plots and tables.
Can i use plotly to generate plots, transform to json and make a Rest service. The portal then access via URIs and display plots by D3.
Thank you very much.