Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the API to Upload reports #211

Open
JWeasy opened this issue Feb 8, 2024 · 1 comment
Open

Using the API to Upload reports #211

JWeasy opened this issue Feb 8, 2024 · 1 comment

Comments

@JWeasy
Copy link

JWeasy commented Feb 8, 2024

Is it possible to use the API to upload a report to TRAM? Thanks in advance for any support.

The only API documentation I see is here:
https://github.com/center-for-threat-informed-defense/tram/wiki/Developers#making-api-calls

@mehaase
Copy link
Contributor

mehaase commented Mar 18, 2024

Not really. The API support was an after thought and doesn't expose all of the functionality in TRAM. We have helped some people build an automated submission/result system but it requires using username/password credential to login, and then scraping the HTML to extract the csrfmiddlewaretoken and using the HTTP headers to obtain the sessionid and csrftoken cookies. It's... not for the faint of heart.

I'll leave this issue open to keep track of this desire to see this feature added to the API. If anybody else wants to voice support for this request, please put a thumbs up on the OP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants