postman 405 method not allowed put code example

Example 1: krakend 405 method not allowed

{
	"version": 2,
	"extra_config": {},
	"timeout": "3000ms",
	"cache_ttl": "300s",
	"output_encoding": "json",
	"endpoints": [
		{
			"endpoint": "/testing",
			"method": "POST",
			"output_encoding": "json",
			"extra_config": {},
			"concurrent_calls": 1,
			"backend": [
				{
					"url_pattern": "/posts",
					"encoding": "json",
					"sd": "static",
					"method": "POST",
					"extra_config": {},
					"host": ["https://jsonplaceholder.typicode.com"],
					"disable_host_sanitize": false,
					"is_collection": false,
					"target": ""
				}
			]
		}
	]
}

Example 2: "status": 405, "error": "Method Not Allowed",

the possibility is that you have use wong request type:GET instead of POST or something else

Tags:

Misc Example