add sample api

- add editor config
- stub our api use cases