Skip to main content
Version: 7.2605.x.x LTS24

Examples

The examples represent requests to nevisMeta with Ninja configured in development mode. If Ninja is configured in production mode, valid cookies must be provided for each request. All examples represent possible JSON responses.

Clients​

Create client​

Minimal client request​

curl -X POST -u admin:ninja -H "Content-Type: application/json"
https://localhost:9943/nevismeta/rest/v3/modules/oauthv2/setups/34e54c81e76b517d63e49972de73fda0/clients
-d '{
"client_name": "MINIMAL",
}'

Response​

client_secret exists in client​

{
"client_name":"MINIMAL",
"token_endpoint_auth_method":"client_secret_basic",
"grant_types":"authorization_code",
"response_types":"code",
"client_id":"d95a9747931f27a1e7fab515426195d6",
"client_secret":"880e4c9c6e1f74b3cfdeecea978b532b",
"client_id_issued_at":1659101222120,
"client_secret_expires_at":"0"
}

client_secret does not exist in client​

{
"client_name":"MINIMAL",
"token_endpoint_auth_method":"client_secret_basic",
"grant_types":"authorization_code",
"response_types":"code",
"client_id":"b842e1ea1d45afcad88e45a5ea01a31c",
"client_id_issued_at":1659100573340
}