add dev api and update the example page