开发者

Making an app's content open versus closed?

开发者 https://www.devze.com 2023-02-22 04:43 出处:网络
I\'m working on a Django app, the objective of which is to collect data on video media, process/normalize/catego开发者_开发知识库rize and then display it within a site.

I'm working on a Django app, the objective of which is to collect data on video media, process/normalize/catego开发者_开发知识库rize and then display it within a site.

I'm wondering if I should open up the data through an API or not.

Are there any advantages in doing so?


usually you provide APIs when you want some external services/programs to use it.

other reason to have nice APIs is to have a AJAX code which will use extensively your backend. but a big disclaimer, in most of the cases standard (specialized) views are enough (and they be a 'lite' version of the API)

so at the end is question do you need it from start, or you can add this later-on when it will be needed/requested.

0

精彩评论

暂无评论...
验证码 换一张
取 消