Extensions and Configuration
R24 AMR | Min(s) read

API Inheritance

Inheritance is a mechanism in which an API inherits the fields and behavior of a parent API.

  • The API whose fields are inherited is known as Parent API.
  • The API that inherits the fields from the parent is known as Child API.

A Child API, along with the inherited fields, can have its own fields and also overwrite the parent fields (for example: changing the label). T his API is called an overridden parent API. The aggregated list of fields is used during the execution of API.

Transact APIs depend on the Version or Enquiry for API to get the payload

  • Parent API has four fields which is extended by Child API.
  • Child API has one field of its own.
  • During execution of the Child API, it will have a total of five fields (4 Parent fields + 1 Child field).

Deleting Parent API Fields in Child API

You can delete any Parent API fields which are not required in Child APIs. The deleted parent fields are not part of the generated API Swagger. This holds good for both Version for API and Enquiry for API

Example for API Version

You can Delete parent field STATUS from child API and can add back the deleted Parent field using Undo button.

      

In this topic

Copyright © 2020- Temenos Headquarters SA

Published on :
Friday, May 31, 2024 10:31:38 AM IST