put api and model into app