concept method in category microservice

This is an excerpt from Manning's book API Design Patterns.
An Application Programming Interface, or API, is just a special type of interface focused on computer programming. In other words, just like a general interface between any two things, an API defines where and how two computer systems interact. Sometimes this can be an API defined within your own program (such as the constructors you define on your own classes) and other times an API could be defined by a library you didn’t write but want to use (such as an encryption library that provides a method like encrypt(input: string): string ). There is another special type of API that is built to be exposed over a network and used remotely by lots of different people and it’s these types of APIs that are the focus of this book, sometimes called “web APIs”.
As you might guess, there certainly are simpler ways of representing and manipulating many-to-many relationships in an API, however they come with several restrictions. In this particular pattern, we'll look at a way of hiding the individual resources that represent these relationships and use custom methods to create and delete associations. Let's start first by summarizing the methods and then we'll explore the specific limitations that come up when relying on this design pattern.