How to obtain the project list through API on version 3.0.0 rc2 #2447
Replies: 2 comments
-
Hi Cristian, We no longer use the HTTP Basic Authentication for the controller in version 3. We use JWT Token Based Authentication instead. The API documentation is available at https://apiv3.gns3.net/ or locally when running the server: http://localhost:3080/docs There are 2 endpoints available to authenticate an user: The best with CURL is to use the
In this example, the token is You need to include the token in the HTTP header like this:
|
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to get to list on projects from a GNS3 server 3.0.0 rc2 using curl and using default admin/admin credentials but always I'm receiving not authenticated message
I'm using the following command locally
curl -X 'GET' -v -u admin:admin http://127.0.0.1:3080/v3/projects
and the output is
I am doing something wrong when using curl to query the API ?
Beta Was this translation helpful? Give feedback.
All reactions