官术网_书友最值得收藏!

Organizing API endpoints

The first important thing that you need to know about organizing API endpoints is that a resource is any information that can be named, which means that a URI should be an entity-based order and not datatype-based current-order-items.

It is good practice to separate internal/private APIs from external/public APIs, for example, by keeping private APIs in the same VPC or making them available only to the company or a specific domain, and making public ones available to any consumer, and sometimes over the internet. It is really common to expose business capabilities externally and foundation capabilities internally. It is important to organize and expose APIs properly, since they will always be used—and they will be used properly. Taking advantage of the business capabilities and creating business-oriented APIs allows an organization to get the most value out of those APIs.

There are three categories of APIs, which allows organizations to create business-oriented APIs:

  • Resource-based APIs
  • Experience-based APIs
  • Capability-based APIs

We will discuss these in more detail in the following sections.

主站蜘蛛池模板: 上思县| 霍州市| 太仓市| 铁岭县| 德昌县| 韶关市| 肃南| 金乡县| 高平市| 泰州市| 铜山县| 会泽县| 当阳市| 固始县| 宜君县| 永靖县| 静乐县| 东光县| 莲花县| 汤阴县| 宝清县| 荆州市| 太原市| 百色市| 福海县| 静乐县| 通化市| 潼关县| 海阳市| 大兴区| 高尔夫| 盐池县| 绥中县| 拜城县| 新营市| 土默特右旗| 台湾省| 汾西县| 秭归县| 道真| 肇州县|