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

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.

主站蜘蛛池模板: 马公市| 温宿县| 临猗县| 泰顺县| 陆川县| 江阴市| 衡阳市| 宜黄县| 罗江县| 集贤县| 鄂伦春自治旗| 隆子县| 安阳市| 苏尼特右旗| 瑞安市| 深水埗区| 将乐县| 浑源县| 乃东县| 大名县| 武宁县| 鄢陵县| 乐陵市| 陆川县| 靖边县| 泾源县| 五常市| 秦皇岛市| 阿荣旗| 东乡族自治县| 湘潭县| 东台市| 沛县| 孝义市| 五原县| 大方县| 沛县| 巩义市| 苏尼特左旗| 普格县| 灌云县|