I need an help. My problem is making api with JSON RPC 2.0 on .net core 2.0 project. So, i've installed this https://github.com/edjCase/JsonRpc plugin. And set ItemsController like this:
namespace AWSTestLambda.Controllers
{
[Route("api/v1/[Controller]")]
public class ItemsController : RpcController
{
public String Test(int id)
{
return "testing";
}
}
}
So, i call the method with postman on local like this (on local machine):
URL set on POST: http://localhost:55241/api/Items
And like body set (raw):
{
"jsonrpc": "2.0",
"method": "Test",
"params": {
"id": 1234
},
"id": ""
}
The response is:
{
"id": "",
"jsonrpc": "2.0",
"error": {
"code": -32601,
"message": "No methods matched request.",
"data": null
}
}
How can solve this problem ? I don't know like call the method inside the controller. Thanks all.