I was trying to generate a new REST API token from a Fisheye and Crucible site
POST -> http://crucible02.my_organisation.com/rest-service-fecru/auth/login/
with parameter ->
{
"userName": "myusername",
"password": "mypassword"
}
by following instruction from this: https://docs.atlassian.com/fisheye-crucible/4.5.1/wadl/fecru.html#rest-service-fecru:auth
I also tried http://crucible02.my_organisation.com/rest-service-fecru/auth/login?userName=...&password=...
This also doesn't work. Can someone please tell me how to generate this API token.
Sorry someone is so late getting back to you.
Can you expand on what doesn't work? Are you getting some sort of error response?
Note that this token is temporary and not the recommended approach for rest authentication. You can't generate that token once, store it in your code and re-use it forever.
Generally, if a program or script has the username/password to be able to authenticate and generate a token for use in subsequent calls, then it's just as easy to always include these parameters in the authorization header for all api calls. See basic authentication
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.