Skip to content
/ mact Public

Mock API/Call Translation - proxy server for testing changes to http APIs.

License

Notifications You must be signed in to change notification settings

PKopel/mact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MA/CT

Mock API/Call Translation - proxy server for testing changes to http servers API.

Usage

  • make build/make install to build/install mact executable form source
  • mact --config=<PATH TO CONFIG YAML> --port=<PORT TO LISTEN ON> to run proxy server

Example config file:

services:
  - host: "http://localhost:8080"
    trustAllCerts: true
    endpoints:
      - path: /ping
        verb: "GET"
        statusCodes: # list of status codes for which responses will be processed
          - 200
        changes:
          - type: add # suported types are add, modify, remove
            field: example.field # json field path
            value: {"test": value} # json value (ignored for 'remove' type)

About

Mock API/Call Translation - proxy server for testing changes to http APIs.

Topics

Resources

License

Stars

Watchers

Forks