Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Formatter_Interceptor_Module

This repository contains a module with two sample interceptors where the Request Interceptor converts a xml payload to a json payload and the Response Interceptor converts a json payload to a xml payload.

  1. jsonToXmlFormatter.bal - A response interceptor which converts a JSON payload to a XML payload.
  2. xmlToJsonFormatter.bal - A request interceptor which converts a XML payload to a JSON payload.
  3. formatterInterceptorTest.bal - contains test functions for the request and response interceptors.

About

This repository contains two sample interceptors where the Request Interceptor converts a xml payload to a json payload and the Response Interceptor converts a json payload to a xml payload.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages