server: Discovery endpoints status code mismatch
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start in server/app/interfaces/discovery.py and inspect the handlers for POST /lookup/shells/{aasIdentifier} and DELETE /lookup/shells/{aasIdentifier}. Compare their responses with the Discovery Service Specification v3.1.1. Done means successful POST requests return 201 and DELETE requests return 404 when no links exist, while preserving the specified behavior otherwise.
Written by the indexing model from the issue text.
Description
The current implementation of the Discovery API (server/app/interfaces/discovery.py) responds in two scenarios with status codes differing from the specification v3.1.1.
POST /lookup/shells/{aasIdentifier}: This endpoint should respond with201on success (currently200)DELETE /lookup/shells/{aasIdentifier}: This endpoint should respond with404if no links exist for the specified AAS (currently always204)
Although these are minor deviations, we should be consistent to the specification and therefore adapt the behavior.
- Dominant language
- Python
- Stars
- 102
- Forks
- 52
- Avg merge
- 20d 17h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-basyx/basyx-python-sdk
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
All issues in eclipse-basyx/basyx-python-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100