HTTP Resources

Last modified by Erik Bakker on 2024/08/23 10:51

In this microlearning, we will dive into the essentials of HTTP Resource Paths. A crucial part of setting up your API Gateway with the help of RESTful services is knowing to which resources (e.g., Order, Client, Employee) you want to give external parties access to your business processes via your API Gateway. Let us explore the best practices and foundational concepts to effectively set up your API Gateway.

If you have any questions along the way, feel free to reach out to us at academy@emagiz.com.

1. Prerequisites

  • Basic knowledge of the eMagiz platform

2. Key concepts

This microlearning centers around HTTP Resource (Paths) in conjunction with the API Gateway solution of eMagiz.

  • With HTTP Resource Paths we mean: Identify the resource (e.g., Client, Order, Employee) and define the descriptive path (i.e., /v1/order, /v1/order/{uuid}) an external party can call to execute the operation.
  • With API Gateway we mean: A collection of RESTful API operations that can be published to the outside world to give them access to applications that are linked to your business process.

3. HTTP Resource (Paths)

This microlearning focuses on the theoretical part of HTTP Resources regardless of a specific implementation in eMagiz. In the microlearnings that will come, we will use this theoretical knowledge when we configure our API Gateway further.

When determining the correct resource path to expose to the outside world, start at what you want to make publicly available.
For example, when you want to make it possible for external parties to retrieve a collection of orders without any filter a valid resource path can be:

  • /orders

If you have multiple resources that you want to make available that all have something to do with the order process you could add each of them to a 'group' to add an extra layer of information:

  • /order-management/orders
  • /order-management/trips

To determine the correct notation also take into account how the backend system that you want to expose via the API Gateway has determined their HTTP Resource (Paths).
If this adheres to the best practice simply use that. More on that specific relation in later microlearnings.

A list of best practices can be found here:
REST API naming concepts

In the following microlearning on HTTP Operations, we will bring the HTTP Resource (Paths) together with the HTTP Operations.
That combination is the basis for any integration that runs via the API Gateway.

4. Key takeaways

  • Start at the backend operation
  • Determine usability of what is provided to you
  • Take action based on that analysis

5. Suggested Additional Readings

If you are interested in this topic and want more information on it please read the help text provided by eMagiz and read the following links: