Re: KernelCI Local Instance docs have missing/outdated info
Trevor Gamblin <[email protected]>
| Newsgroups | dev.linux.lists.kernelci |
|---|---|
| Message-ID | <[email protected]> |
On 2023-11-27 23:43, Jeny Sheth wrote:
> Hello Trevor,
>
> Thanks for reporting the issue. Due to recent API updates on user
> management side, a few endpoints have been redesigned and renamed.
> Endpoint to get access tokens has been renamed to `/user/login`.
>
> We have updated documentation accordingly and updates have been
> rolled-out to https://kernelci.org/docs/api. You can continue
> referring to the same link. Sorry for the hurdles you had to face.
Hi Jeny,
Thanks for the update! I've got it running now.
- Trevor
>
> Thank you, Jeny
>
>
> On 14/11/23 3:13 am, Trevor Gamblin wrote:
>> Hello,
>>
>> While following https://kernelci.org/docs/api/local-instance/, I have
>> run into an issue when trying to generate an admin API token:
>>
>> [tgamblin@homunculus ~]$ curl -X 'POST' \
>> 'http://localhost:8001/latest/token' \
>> -H 'accept: application/json' \
>> -H 'Content-Type: application/x-www-form-urlencoded' \
>> -d 'grant_type=&username=admin&password=hello&scope=admin users'
>> {"detail":"Not Found"}[tgamblin@homunculus ~]$
>>
>> The previous steps to start the instance and confirm API availability
>> work fine, but the "token" endpoint doesn't appear to be up, and I
>> can't continue without it.
>>
>> Is there a newer set of documentation that can be followed, or can
>> someone point me at what I've missed?
>>
>> Thanks,
>>
>> - Trevor
>>
>>