Postman Canvas API collection

dsweeney2
Community Participant
8
5215

I posted this in a previous thread that is now rather buried in the new structure, so I'm reposting for those who might be interested.

I've written a python script to collect all the API docs from the Swagger documentation and create a collection that you can import into Postman. At latest count there are 800 requests across the whole collection. Available here:

Damian Sweeney / Canvas API Postman · GitLab

Tags (2)
8 Comments
bbennett2
Community Champion

I would kudo this more and more if I could. This is an incredible help...thanks so much!

samuel_malcolm
Community Participant

this is a huge time saver, thank you!

DanGioia
Community Member

This is great, Thanks!

carols
Community Explorer

This is excellent, thanks so much for taking the time to develop and share it

sor1
Community Participant

This is fantastic.

Notes:

1) Just run the python script as is - no need to change anything

2) The Postman Import file command creates a Canvas API folder automatically. 

ReinelRios
Community Member

@dsweeney2 @sor1 

I'm trying to use the script but it is not working for me.

I got this error:

C:\Users\Name\Downloads\canvas-api-postman-master>py canvas-api-postman.py
Traceback (most recent call last):
File "C:\Users\Name\Downloads\canvas-api-postman-master\canvas-api-postman.py", line 2, in <module>
import requests
ModuleNotFoundError: No module named 'requests'

dsweeney2
Community Participant

@ReinelRios You'll need to install the requests python module.

pip install requests

should do it. More info here:

https://pypi.org/project/requests/

ReinelRios
Community Member

@dsweeney2 thanks!!! This was what was missing, now the script works perfectly.