AppThreat / AppThreat/atom

Incorrect METHOD being inferred for APIs in Django application

Open
#142 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
98
Forks
10
Avg merge
6h 19m
Merged PRs (30d)
1

Description

## Describe the bug
The openAPI spec generation for a Django app, assigns incorrect METHOD to some endpoints

## How to reproduce
Generate the spec for any Django application eg. https://github.com/smahesh29/Django-WebApp

````
"/users/login.html": {
"get": {
"responses": {}
},
"post": {
"responses": {}
},
"x-atom-usages": {
"call": {
"django_web_app/django_web_app/urls.py": [
25
]
}
}
},
"/users/logout.html": {
"get": {
"responses": {}
},
"post": {
"responses": {}
},
"x-atom-usages": {
"call": {
"django_web_app/django_web_app/urls.py": [
28
]
}
}
}
````

The spec contains endpoints with both GET and POST which looks incorrect

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.