Practice for creating api