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 · 2 comments · May be fixed by #223
Open

Using the API to Upload reports #211

JWeasy opened this issue Feb 8, 2024 · 2 comments · May be fixed by #223

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.

@taketo1113 taketo1113 linked a pull request Jan 23, 2025 that will close this issue
@taketo1113
Copy link
Contributor

I also wanted to use the Upload Reports API, so I created a Pull Request to add the Upload Reports API.

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

Successfully merging a pull request may close this issue.

3 participants