I'm not sure if I understood quite what your after, but you can specify the get method signatures such as:
[HttpGet("GetPublicKey")]
public IActionResult GetPublicKey()
{
object returnData;
returnData = "CMDS Public Key";
return Ok(returnData);
}
[HttpGet("GetJWTToken/{AuthString}")]
public IActionResult GetJWTToken(string AuthString)
{
object returnData;
returnData = "JWT Token";
return Ok(returnData);
}
Which would allow:
Invoke-RestMethod http:
Invoke-RestMethod http: