gns3-server/gns3server
Rolf Sommerhalder 6e88d4816f
REST API example needs additional parameter
While try this example with GNS3 branch 3.0 on Ubuntu 20.04 LTS, the API call 
```$ curl http://172.17.46.114:3080/v3/users/authenticate -d '{"username": "admin", "password": "admin"}' ```  fails with ```{"detail":[{"loc":["body"],"msg":"value is not a valid dict","type":"type_error.dict"}]}```.

The additional parameter appended to curl fixes this ```{"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTYzMTI4NTc4NX0.kT1dAN4v1vHMTBJO2UaI2I7yAFhnSpBU9iqmdDuwtAQ","token_type":"bearer"} ```
Found after googling for the error above in 
FastAPI 0.65.2 POST request fails with "value is not a valid dict" when using the Requests library; 0.65.1 works (with a caveat) #3373
https://github.com/tiangolo/fastapi/issues/3373#issuecomment-886745123
2021-09-09 17:08:26 +02:00
..
api REST API example needs additional parameter 2021-09-09 17:08:26 +02:00
appliances Sync appliance files. 2021-08-24 21:21:18 +09:30
compute Merge branch '2.2' into 3.0 2021-09-09 16:36:17 +09:30
configs New VPCS base config. Fixes #786. 2017-06-28 17:40:54 +08:00
controller Fix tests 2021-09-09 16:54:16 +09:30
core Detect the app is exiting and avoid reconnecting to computes. 2021-04-17 18:33:20 +09:30
db Add index for "name" field in role table 2021-09-03 15:21:41 +09:30
schemas Revert "List disk usage for all mount points" 2021-09-02 21:59:09 +09:30
services Move schemas between compute and controller subpackages 2021-04-15 18:12:08 +09:30
static Release web UI 2.2.24 2021-08-25 11:57:52 +02:00
symbols Updated affinity symbols 2021-09-08 01:08:01 +09:30
templates Move to version 3 of the REST API. 2020-11-02 12:05:32 +10:30
utils Merge branch '2.2' into 3.0 2021-09-09 16:36:17 +09:30
web Merge branch 'master' into 3.0 2021-08-29 19:23:51 +09:30
__init__.py Use pyupgrade with --py36-plus param. 2021-04-13 18:37:58 +09:30
__main__.py Allow to start server with python -m gns3server 2015-08-25 22:31:45 +02:00
config.py Fix bug when no server config file is present. 2021-04-28 14:44:34 +09:30
crash_report.py Merge branch 'master' into 3.0 2021-08-29 19:23:51 +09:30
logger.py Fix bug when binding on address already in use. 2021-04-28 15:13:31 +09:30
main.py Use black with -l 120 param. 2021-04-13 18:46:50 +09:30
server.py Add user groups support. 2021-05-15 15:10:02 +09:30
version.py Development on 2.2.25dev1 2021-08-25 21:23:19 +09:30