Respuesta :

Lanuel

A valid RAML to use the Book Data Type and Book Example is given by this executable code:

  1. #%RAML 1.0
  2. title: Books
  3. Book: bookDataType.raml
  4. /books:
  5. post:
  6. body:
  7. application/json:
  8. type: Book
  9. examples:
  10. input: bookExample.raml
  11. responses:
  12. 201:
  13. body:
  14. application/json:
  15. example:
  16. message: Book added

What is RAML?

RAML is an acronym for RESTful API Modeling Language and it can be defined as a human and machine-readable programming language that allows a software developer (end user) to see all the information associated with an application programming interface (API) as it is being designed.

This ultimately implies that, RAML is typically used for describing RESTful application programming interfaces (APIs), so as to build file-distributed API definitions.

The advantages of RAML.

  • It encourage code reuse.
  • It improves the readability of a code.
  • It facilitates consistency in API.

Read more on RAML here: https://brainly.com/question/23653232

ACCESS MORE