i try get /api/v8/modules/viewed on postman and get this error
{
"errors": [
{
"code": 8000,
"title": "[SuiteCRM] [API] [OAuth] Unable to generate private key",
"status": 400
},
{
"id": "1",
"links": {
"about": null
},
"status": 500,
"code": 8000,
"title": "JSON API Error",
"detail": "Api Version: 8",
"source": {
"pointer": null,
"parameter": null
},
"meta": {
"about": "Exception",
"class": "SuiteCRM\\API\\v8\\Exception\\ApiException",
"code": 8000,
"langMessage": null,
"debug": {
"message": "[SuiteCRM] [API] [OAuth] Unable to generate private key",
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\lib\\API\\OAuth2\\Keys.php",
"line": 91,
"trace": [
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\lib\\API\\OAuth2\\Keys.php",
"line": 58,
"function": "setUpKeys",
"class": "SuiteCRM\\API\\OAuth2\\Keys",
"type": "->",
"args": []
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\lib\\API\\v8\\container\\ResourceServer.php",
"line": 46,
"function": "getPublicKey",
"class": "SuiteCRM\\API\\OAuth2\\Keys",
"type": "->",
"args": []
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\pimple\\pimple\\src\\Pimple\\Container.php",
"line": 118,
"function": "{closure}",
"args": [
{}
]
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\Container.php",
"line": 123,
"function": "offsetGet",
"class": "Pimple\\Container",
"type": "->",
"args": [
"ResourceServer"
]
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\CallableResolver.php",
"line": 86,
"function": "get",
"class": "Slim\\Container",
"type": "->",
"args": [
"ResourceServer"
]
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\CallableResolver.php",
"line": 67,
"function": "resolveCallable",
"class": "Slim\\CallableResolver",
"type": "->",
"args": [
"ResourceServer"
]
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\CallableResolverAwareTrait.php",
"line": 45,
"function": "resolve",
"class": "Slim\\CallableResolver",
"type": "->",
"args": [
"ResourceServer"
]
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\DeferredCallable.php",
"line": 36,
"function": "resolveCallable",
"class": "Slim\\DeferredCallable",
"type": "->",
"args": [
"ResourceServer"
]
},
{
"function": "__invoke",
"class": "Slim\\DeferredCallable",
"type": "->",
"args": [
{},
{},
{}
]
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\MiddlewareAwareTrait.php",
"line": 70,
"function": "call_user_func",
"args": [
{},
{},
{},
{}
]
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\MiddlewareAwareTrait.php",
"line": 117,
"function": "Slim\\{closure}",
"class": "Slim\\App",
"type": "->",
"args": [
{},
{}
]
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\App.php",
"line": 406,
"function": "callMiddlewareStack",
"class": "Slim\\App",
"type": "->",
"args": [
{},
{}
]
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\App.php",
"line": 314,
"function": "process",
"class": "Slim\\App",
"type": "->",
"args": [
{},
{}
]
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\lib\\API\\core\\app.php",
"line": 89,
"function": "run",
"class": "Slim\\App",
"type": "->",
"args": []
},
{
"file": "C:\\xampp\\htdocs\\SuiteCRMxperuri\\lib\\API\\public\\index.php",
"line": 5,
"args": [
"C:\\xampp\\htdocs\\SuiteCRMxperuri\\lib\\API\\core\\app.php"
],
"function": "require_once"
}
],
"traceAsString": "#0 C:\\xampp\\htdocs\\SuiteCRMxperuri\\lib\\API\\OAuth2\\Keys.php(58): SuiteCRM\\API\\OAuth2\\Keys->setUpKeys()\n#1 C:\\xampp\\htdocs\\SuiteCRMxperuri\\lib\\API\\v8\\container\\ResourceServer.php(46): SuiteCRM\\API\\OAuth2\\Keys->getPublicKey()\n#2 C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\pimple\\pimple\\src\\Pimple\\Container.php(118): {closure}(Object(Slim\\Container))\n#3 C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\Container.php(123): Pimple\\Container->offsetGet('ResourceServer')\n#4 C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\CallableResolver.php(86): Slim\\Container->get('ResourceServer')\n#5 C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\CallableResolver.php(67): Slim\\CallableResolver->resolveCallable('ResourceServer')\n#6 C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\CallableResolverAwareTrait.php(45): Slim\\CallableResolver->resolve('ResourceServer')\n#7 C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\DeferredCallable.php(36): Slim\\DeferredCallable->resolveCallable('ResourceServer')\n#8 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\App))\n#9 C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\\DeferredCallable), Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\App))\n#10 C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\MiddlewareAwareTrait.php(117): Slim\\App->Slim\\{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))\n#11 C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\App.php(406): Slim\\App->callMiddlewareStack(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))\n#12 C:\\xampp\\htdocs\\SuiteCRMxperuri\\vendor\\slim\\slim\\Slim\\App.php(314): Slim\\App->process(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))\n#13 C:\\xampp\\htdocs\\SuiteCRMxperuri\\lib\\API\\core\\app.php(89): Slim\\App->run()\n#14 C:\\xampp\\htdocs\\SuiteCRMxperuri\\lib\\API\\public\\index.php(5): require_once('C:\\\\xampp\\\\htdocs...')\n#15 {main}"
}
}
}
],
"meta": {
"suiteapi": {
"major": 8,
"minor": 0,
"patch": 0,
"stability": "ALPHA"
}
},
"jsonapi": {
"version": "1.0"
}
}
Can Help how to use API in suitecrm?