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

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.

主站蜘蛛池模板: 调兵山市| 九江县| 鹤壁市| 朝阳市| 沛县| 正蓝旗| 嵊州市| 樟树市| 奎屯市| 昌都县| 贵定县| 万年县| 商都县| 雅安市| 瓦房店市| 扎鲁特旗| 临武县| 固阳县| 徐水县| 安陆市| 城固县| 常德市| 红桥区| 隆回县| 宜宾县| 吴忠市| 武安市| 浑源县| 石门县| 通山县| 永兴县| 柳江县| 建始县| 大城县| 抚顺市| 江城| 景宁| 卫辉市| 山阴县| 林芝县| 阳春市|