Data to post to /mantisbt/bug_report_page.php using REST
Posted: 18 Jul 2022, 15:33
Hello all!
So I'm trying to use REST to create a new issue because my team will need a script that will generate a ticket automatically when prompted (I read somewhere that this is possible through REST, feel free to share your thoughts if that's not possible.)
When I execute 'requests.get(http:// x /mantisbt/bug_report_page.php)' I get a 200 response which makes me happy (I don't feel comfortable sharing what the server name actually is so I just wrote x here)
Then when I execute 'requests.post(url = http:// x /mantisbt/bug_report_page.php), data = {}) I also get a 200 response which means the connections works but I don't know what data to put in to get the 201 response I'm looking for. Does anyone know what data I need to add into the python dictionary to make this work? Does it have anything to do with the swagger.json file?
So I'm trying to use REST to create a new issue because my team will need a script that will generate a ticket automatically when prompted (I read somewhere that this is possible through REST, feel free to share your thoughts if that's not possible.)
When I execute 'requests.get(http:// x /mantisbt/bug_report_page.php)' I get a 200 response which makes me happy (I don't feel comfortable sharing what the server name actually is so I just wrote x here)
Then when I execute 'requests.post(url = http:// x /mantisbt/bug_report_page.php), data = {}) I also get a 200 response which means the connections works but I don't know what data to put in to get the 201 response I'm looking for. Does anyone know what data I need to add into the python dictionary to make this work? Does it have anything to do with the swagger.json file?