-
Notifications
You must be signed in to change notification settings - Fork 28
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
DotAAS Part 2: HTTP API #238
Commits on Feb 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d7b9e43 - Browse repository at this point
Copy the full SHA d7b9e43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b9c061 - Browse repository at this point
Copy the full SHA 2b9c061View commit details -
change maximum werkzeug version to <2
list werkzeug as a dependency in the readme
Configuration menu - View commit details
-
Copy full SHA for a8d4ded - Browse repository at this point
Copy the full SHA a8d4dedView commit details -
adapter.http: serialize response data in xml/json response classes
adapter.http: add custom identifier converter for werkzeug adapter.http: restructure routing map, add first submodel route adapter.http: refine imports
Configuration menu - View commit details
-
Copy full SHA for f56149f - Browse repository at this point
Copy the full SHA f56149fView commit details -
adapter.http: move to folder with seperate files
adapter._generic: add identifier URI encode/decode functions adapter.http: make api routes return ResponseData instead of the Response directly adapter.http: add Result + Message types + factory function
Configuration menu - View commit details
-
Copy full SHA for 45c83df - Browse repository at this point
Copy the full SHA 45c83dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 657b4dd - Browse repository at this point
Copy the full SHA 657b4ddView commit details -
adapter.http: add json/xml result serialization
adapter.http: add request body parsing adapter.http: implement all remaining aas routes
Configuration menu - View commit details
-
Copy full SHA for 05e94e5 - Browse repository at this point
Copy the full SHA 05e94e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ae5de4 - Browse repository at this point
Copy the full SHA 8ae5de4View commit details -
adapter.http: prepare for new api routes from new spec
- use stripped object serialization/deserialization - change response format (new spec always returns a result object)
Configuration menu - View commit details
-
Copy full SHA for 3a953dc - Browse repository at this point
Copy the full SHA 3a953dcView commit details -
adapter.http: move code from folder to file http.py
adapter.http: remove old routes, add a few new aas and submodel routes
Configuration menu - View commit details
-
Copy full SHA for a3856cb - Browse repository at this point
Copy the full SHA a3856cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f50d8e - Browse repository at this point
Copy the full SHA 8f50d8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dd9153 - Browse repository at this point
Copy the full SHA 6dd9153View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cdf030 - Browse repository at this point
Copy the full SHA 6cdf030View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8866706 - Browse repository at this point
Copy the full SHA 8866706View commit details -
adapter.http: add location header to 201 responses
using the werkzeug.routing.MapAdapter url builder
Configuration menu - View commit details
-
Copy full SHA for be57ecf - Browse repository at this point
Copy the full SHA be57ecfView commit details -
Configuration menu - View commit details
-
Copy full SHA for a414d67 - Browse repository at this point
Copy the full SHA a414d67View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef96640 - Browse repository at this point
Copy the full SHA ef96640View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76a444c - Browse repository at this point
Copy the full SHA 76a444cView commit details -
adapter.http: refactor routing
Requests to URIs with a trailing slash will now be redirected to the respective URI without trailing slash. e.g. GET /aas/$identifier/ -> GET /aas/$identifier A redirect will only be set if the respective URI without trailing slash exists and the current request method is valid for the new URI. Historically, the trailing slash was only present when the requested resource was a directory. In our case the resources don't work like directories, in the sense, that each resource doesn't even list possible subsequent resources. So because our resources don't behave like directories, they shouldn't have a trailing slash.
Configuration menu - View commit details
-
Copy full SHA for 9d27d12 - Browse repository at this point
Copy the full SHA 9d27d12View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc2d747 - Browse repository at this point
Copy the full SHA fc2d747View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ed487d - Browse repository at this point
Copy the full SHA 3ed487dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 40b3176 - Browse repository at this point
Copy the full SHA 40b3176View commit details -
Configuration menu - View commit details
-
Copy full SHA for f13f0f9 - Browse repository at this point
Copy the full SHA f13f0f9View commit details -
adapter.http: get root cause in parse_request_body()
for better error messages
Configuration menu - View commit details
-
Copy full SHA for 88e923e - Browse repository at this point
Copy the full SHA 88e923eView commit details -
adapter.http: remove minlength=1 from string url parameters
because that's default anyways
Configuration menu - View commit details
-
Copy full SHA for 1760ae1 - Browse repository at this point
Copy the full SHA 1760ae1View commit details -
adapter.http: rewrite idShort as id_short in error message
to stay consistent with the rest of this library
Configuration menu - View commit details
-
Copy full SHA for 19ab6e0 - Browse repository at this point
Copy the full SHA 19ab6e0View commit details -
adapter.http: add nested submodel elements endpoints
add IdShortPathConverter and helper functions
Configuration menu - View commit details
-
Copy full SHA for 29ca324 - Browse repository at this point
Copy the full SHA 29ca324View commit details -
adapter.http: compare id_shorts case-insensitively in PUT routes
change type check from `not A is B` to `A is not B` for better readability
Configuration menu - View commit details
-
Copy full SHA for 779d15e - Browse repository at this point
Copy the full SHA 779d15eView commit details -
adapter.http: add nested submodel element endpoints for type-specific…
… attributes like statement, annotation and value
Configuration menu - View commit details
-
Copy full SHA for 000e4b3 - Browse repository at this point
Copy the full SHA 000e4b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 257ba14 - Browse repository at this point
Copy the full SHA 257ba14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cb5002 - Browse repository at this point
Copy the full SHA 4cb5002View commit details -
Configuration menu - View commit details
-
Copy full SHA for e471bd7 - Browse repository at this point
Copy the full SHA e471bd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ce1aaf - Browse repository at this point
Copy the full SHA 6ce1aafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00b6598 - Browse repository at this point
Copy the full SHA 00b6598View commit details -
Configuration menu - View commit details
-
Copy full SHA for 921c774 - Browse repository at this point
Copy the full SHA 921c774View commit details -
http-api-oas: add first working draft
add initial specification discussed in the meeting (03.09.2020)
Configuration menu - View commit details
-
Copy full SHA for 677b883 - Browse repository at this point
Copy the full SHA 677b883View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8ec2a7 - Browse repository at this point
Copy the full SHA e8ec2a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59a689f - Browse repository at this point
Copy the full SHA 59a689fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72b2dc1 - Browse repository at this point
Copy the full SHA 72b2dc1View commit details -
http-api-oas: remove concept dictionary routes
update json schema make routes more consistent
Configuration menu - View commit details
-
Copy full SHA for 0fdf559 - Browse repository at this point
Copy the full SHA 0fdf559View commit details -
http-api-oas: cleanup descriptions
remove default responses smaller fixes
Configuration menu - View commit details
-
Copy full SHA for 83ababd - Browse repository at this point
Copy the full SHA 83ababdView commit details -
http-api-oas: fix name (uppercase P)
add link to git repo of the PyI40AAS framework
Configuration menu - View commit details
-
Copy full SHA for 7c0d55f - Browse repository at this point
Copy the full SHA 7c0d55fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0d184e - Browse repository at this point
Copy the full SHA e0d184eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb1d2a6 - Browse repository at this point
Copy the full SHA fb1d2a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5796848 - Browse repository at this point
Copy the full SHA 5796848View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94ff8a6 - Browse repository at this point
Copy the full SHA 94ff8a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9291a04 - Browse repository at this point
Copy the full SHA 9291a04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b515f5 - Browse repository at this point
Copy the full SHA 4b515f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4b32c0 - Browse repository at this point
Copy the full SHA a4b32c0View commit details -
http-api-oas: updating a nested SubmodelElement with a different type…
… is a BadRequest (400)
Configuration menu - View commit details
-
Copy full SHA for 170c731 - Browse repository at this point
Copy the full SHA 170c731View commit details -
Configuration menu - View commit details
-
Copy full SHA for 038fa11 - Browse repository at this point
Copy the full SHA 038fa11View commit details -
Configuration menu - View commit details
-
Copy full SHA for f16e999 - Browse repository at this point
Copy the full SHA f16e999View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79d812e - Browse repository at this point
Copy the full SHA 79d812eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1658e75 - Browse repository at this point
Copy the full SHA 1658e75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 35316a3 - Browse repository at this point
Copy the full SHA 35316a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 383114f - Browse repository at this point
Copy the full SHA 383114fView commit details -
http-api-oas: allow changing the identifying attribute (idShort or ty…
…pe) in PUT/PATCH routes
Configuration menu - View commit details
-
Copy full SHA for c27232a - Browse repository at this point
Copy the full SHA c27232aView commit details -
http-api-oas: move to test/adapter/ directory
improve filename use .yaml instead of .yml file extension (see https://yaml.org/faq.html)
Configuration menu - View commit details
-
Copy full SHA for b7573db - Browse repository at this point
Copy the full SHA b7573dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0a2984 - Browse repository at this point
Copy the full SHA b0a2984View commit details -
adapter.http: make trailing slashes the default
http-api-oas: follow suit
Configuration menu - View commit details
-
Copy full SHA for 8151c61 - Browse repository at this point
Copy the full SHA 8151c61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 538de8c - Browse repository at this point
Copy the full SHA 538de8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e42212b - Browse repository at this point
Copy the full SHA e42212bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c91f64 - Browse repository at this point
Copy the full SHA 3c91f64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1259203 - Browse repository at this point
Copy the full SHA 1259203View commit details -
Configuration menu - View commit details
-
Copy full SHA for d821da6 - Browse repository at this point
Copy the full SHA d821da6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3737e8f - Browse repository at this point
Copy the full SHA 3737e8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc18322 - Browse repository at this point
Copy the full SHA cc18322View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40da58f - Browse repository at this point
Copy the full SHA 40da58fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 06ca48d - Browse repository at this point
Copy the full SHA 06ca48dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff99b7f - Browse repository at this point
Copy the full SHA ff99b7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 826e80a - Browse repository at this point
Copy the full SHA 826e80aView commit details -
requirements.txt: add hypothesis and schemathesis .gitignore: add /.hypothesis/ directory
Configuration menu - View commit details
-
Copy full SHA for faa8d45 - Browse repository at this point
Copy the full SHA faa8d45View commit details -
adapter.http: fix NamespaceSet containment checks and removals
... in accordance to 0e343ac.
Configuration menu - View commit details
-
Copy full SHA for dcae764 - Browse repository at this point
Copy the full SHA dcae764View commit details -
adapter.http: update AAS interface for new api spec
update response encoders update response data
Configuration menu - View commit details
-
Copy full SHA for 1cb4d2e - Browse repository at this point
Copy the full SHA 1cb4d2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ceef25 - Browse repository at this point
Copy the full SHA 7ceef25View commit details -
Configuration menu - View commit details
-
Copy full SHA for d05be61 - Browse repository at this point
Copy the full SHA d05be61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 428a2ba - Browse repository at this point
Copy the full SHA 428a2baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7daee18 - Browse repository at this point
Copy the full SHA 7daee18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 758537b - Browse repository at this point
Copy the full SHA 758537bView commit details -
adapter.http: use example without missing attributes (contains no views)
because the view routes have been removed
Configuration menu - View commit details
-
Copy full SHA for ed90671 - Browse repository at this point
Copy the full SHA ed90671View commit details -
adapter.http: make json/xml decoder interface independent of the requ…
…est body add aas/submodel repository interface
Configuration menu - View commit details
-
Copy full SHA for f4741fd - Browse repository at this point
Copy the full SHA f4741fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ee258f - Browse repository at this point
Copy the full SHA 7ee258fView commit details -
adapter.http: update to Review3
add Base64UrlJsonConverter for json objects encoded as base64url as part of the url support deserializing submodels in HTTPApiDecoder add POST routes, remove 'create' functionality from PUT routes
Configuration menu - View commit details
-
Copy full SHA for 3c3f2a2 - Browse repository at this point
Copy the full SHA 3c3f2a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa1c148 - Browse repository at this point
Copy the full SHA fa1c148View commit details -
adapter.http: update for changes made in the last 2 years
This commit consists mostly of renamed variables, but also other stuff like the identifiers, which consisted of an IdentifierType and the actual Identifier previously.
Configuration menu - View commit details
-
Copy full SHA for b4d82d0 - Browse repository at this point
Copy the full SHA b4d82d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27b6218 - Browse repository at this point
Copy the full SHA 27b6218View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdf1765 - Browse repository at this point
Copy the full SHA cdf1765View commit details -
Configuration menu - View commit details
-
Copy full SHA for 720ca3f - Browse repository at this point
Copy the full SHA 720ca3fView commit details -
adapter.http: remove an outdated comment
Views were removed from the spec and we're no longer using `example_aas_missing_attributes()` anyway.
Configuration menu - View commit details
-
Copy full SHA for c4b564d - Browse repository at this point
Copy the full SHA c4b564dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bf02d5 - Browse repository at this point
Copy the full SHA 3bf02d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b13c18 - Browse repository at this point
Copy the full SHA 0b13c18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4185ec7 - Browse repository at this point
Copy the full SHA 4185ec7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3808925 - Browse repository at this point
Copy the full SHA 3808925View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99f480e - Browse repository at this point
Copy the full SHA 99f480eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03904a9 - Browse repository at this point
Copy the full SHA 03904a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 841b2fc - Browse repository at this point
Copy the full SHA 841b2fcView commit details
Commits on Feb 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c666488 - Browse repository at this point
Copy the full SHA c666488View commit details
Commits on Feb 21, 2024
-
adapter.http: remove
/aas
submount from AAS repositoryThe submount has been removed from the spec, yay!
Configuration menu - View commit details
-
Copy full SHA for 55b8f1c - Browse repository at this point
Copy the full SHA 55b8f1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e857a64 - Browse repository at this point
Copy the full SHA e857a64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 712df72 - Browse repository at this point
Copy the full SHA 712df72View commit details
Commits on Mar 6, 2024
-
Merge pull request #9 from rwth-iat/http_api/remove_aas_submount
adapter.http: remove `/aas` submount from AAS repository
Configuration menu - View commit details
-
Copy full SHA for b9ba39a - Browse repository at this point
Copy the full SHA b9ba39aView commit details -
Merge pull request #10 from rwth-iat/http_api/update_base_url
adapter.http: update base URL from `/api/v1` to `/api/v3.0`
Configuration menu - View commit details
-
Copy full SHA for 1d2813e - Browse repository at this point
Copy the full SHA 1d2813eView commit details -
Merge pull request #11 from rwth-iat/http_api/improve_IdentifierConve…
…rter_error_messages adapter.http: remove hardcoded encoding from error messages
Configuration menu - View commit details
-
Copy full SHA for d424ace - Browse repository at this point
Copy the full SHA d424aceView commit details
Commits on Mar 15, 2024
-
Merge pull request #12 from rwth-iat/main
merge `main` in `feature/http_api`
Configuration menu - View commit details
-
Copy full SHA for 107f158 - Browse repository at this point
Copy the full SHA 107f158View commit details -
adapter.http: fix base64 decoding without padding
Many online tools omit the padding when encoding base64url. Thus, requesters may omit the padding as well, which would cause the decoding to fail. Thus, we simply always append two padding characters, because python doesn't complain about too much padding.
Configuration menu - View commit details
-
Copy full SHA for a9975f7 - Browse repository at this point
Copy the full SHA a9975f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bfbad3 - Browse repository at this point
Copy the full SHA 5bfbad3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71ff951 - Browse repository at this point
Copy the full SHA 71ff951View commit details -
adapter.http: simplify XML serialization
... by using (now) builtin functionality.
Configuration menu - View commit details
-
Copy full SHA for 8065153 - Browse repository at this point
Copy the full SHA 8065153View commit details -
adapter.http: fix
ModelReference
json deserializationThe http adapter still used the old `construct_aas_reference` function, which doesn't exist anymore. The error was masked due to a broad `type: ignore`. These are changed to only ignore assignment type errors.
Configuration menu - View commit details
-
Copy full SHA for b392d49 - Browse repository at this point
Copy the full SHA b392d49View commit details -
adapter.http: simplify
SubmodelElement
deletionWe can always call `_get_submodel_or_nested_submodel_element`, as it returns the submodel itself if we don't pass it any id_shorts.
Configuration menu - View commit details
-
Copy full SHA for ae8d527 - Browse repository at this point
Copy the full SHA ae8d527View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e00cff - Browse repository at this point
Copy the full SHA 2e00cffView commit details -
adapter.http: use
Referable.validate_id_short()
to validate id_shorts... instead of the previous way of creating a `MultiLanguageProperty` to validate id_shorts.
Configuration menu - View commit details
-
Copy full SHA for 6667a41 - Browse repository at this point
Copy the full SHA 6667a41View commit details -
Merge pull request #14 from rwth-iat/http_api/improve_base64url_decoding
adapter.http: fix base64 decoding without padding
Configuration menu - View commit details
-
Copy full SHA for 9a22020 - Browse repository at this point
Copy the full SHA 9a22020View commit details
Commits on Mar 16, 2024
-
Merge pull request #15 from rwth-iat/http_api/remove_submodel_submount
adapter.http: remove `/submodel` submount from Submodel repository
Configuration menu - View commit details
-
Copy full SHA for d5cb103 - Browse repository at this point
Copy the full SHA d5cb103View commit details -
Merge pull request #16 from rwth-iat/http_api/use_builtin_id_short_pa…
…th_resolution adapter.http: use builtin id_short path resolution
Configuration menu - View commit details
-
Copy full SHA for fe60097 - Browse repository at this point
Copy the full SHA fe60097View commit details -
Merge pull request #17 from rwth-iat/http_api/fix_json_model_referenc…
…e_deserialization adapter.http: fix `ModelReference` json deserialization
Configuration menu - View commit details
-
Copy full SHA for 154b6fc - Browse repository at this point
Copy the full SHA 154b6fcView commit details -
Merge pull request #18 from rwth-iat/http_api/simplify_xml_serialization
adapter.http: simplify XML serialization
Configuration menu - View commit details
-
Copy full SHA for 2ef77c9 - Browse repository at this point
Copy the full SHA 2ef77c9View commit details -
Merge pull request #19 from rwth-iat/http_api/simplify_submodel_eleme…
…nt_deletion adapter.http: simplify `SubmodelElement` deletion
Configuration menu - View commit details
-
Copy full SHA for 80eeb44 - Browse repository at this point
Copy the full SHA 80eeb44View commit details -
Merge pull request #20 from rwth-iat/http_api/simplify_id_short_valid…
…ation adapter.http: simplify `id_short` validation
Configuration menu - View commit details
-
Copy full SHA for 79d82aa - Browse repository at this point
Copy the full SHA 79d82aaView commit details
Commits on Mar 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 251afe6 - Browse repository at this point
Copy the full SHA 251afe6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50780e0 - Browse repository at this point
Copy the full SHA 50780e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0bdd78 - Browse repository at this point
Copy the full SHA b0bdd78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f94a11 - Browse repository at this point
Copy the full SHA 9f94a11View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac406f5 - Browse repository at this point
Copy the full SHA ac406f5View commit details
Commits on Mar 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8dbba42 - Browse repository at this point
Copy the full SHA 8dbba42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 857b3df - Browse repository at this point
Copy the full SHA 857b3dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for ffb833b - Browse repository at this point
Copy the full SHA ffb833bView commit details
Commits on Mar 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 78d6af9 - Browse repository at this point
Copy the full SHA 78d6af9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2f9d79 - Browse repository at this point
Copy the full SHA b2f9d79View commit details -
Merge pull request #22 from rwth-iat/http_api/semanticIdfiltering
adapter.http: implement submodel repo routes
Configuration menu - View commit details
-
Copy full SHA for b53783a - Browse repository at this point
Copy the full SHA b53783aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c2c6cc1 - Browse repository at this point
Copy the full SHA c2c6cc1View commit details -
adapter.http: update AAS submodel refs
DELETE
routeThe route now uses the submodel identifier instead of the submodel reference.
Configuration menu - View commit details
-
Copy full SHA for 30e739d - Browse repository at this point
Copy the full SHA 30e739dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 990b7f9 - Browse repository at this point
Copy the full SHA 990b7f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b88db58 - Browse repository at this point
Copy the full SHA b88db58View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c9cd44 - Browse repository at this point
Copy the full SHA 9c9cd44View commit details -
Configuration menu - View commit details
-
Copy full SHA for bae8fbc - Browse repository at this point
Copy the full SHA bae8fbcView commit details
Commits on Mar 27, 2024
-
Merge pull request #26 from rwth-iat/http_api/improve_base64url_encode
adapter.http: change `base64url_encode()` function to return `str`
Configuration menu - View commit details
-
Copy full SHA for acd123d - Browse repository at this point
Copy the full SHA acd123dView commit details -
Merge pull request #24 from rwth-iat/http_api/update_aas_submodel_ref…
…s_routes adapter.http: update AAS submodel refs path and `DELETE` route
Configuration menu - View commit details
-
Copy full SHA for 44e3827 - Browse repository at this point
Copy the full SHA 44e3827View commit details -
Merge pull request #25 from rwth-iat/http_api/suffix_slashes
adapter.http: suffix slashes to all routes
Configuration menu - View commit details
-
Copy full SHA for cfdd7d7 - Browse repository at this point
Copy the full SHA cfdd7d7View commit details
Commits on Mar 28, 2024
-
adapter.http: implement AAS API submodel routes via redirects
The submodel routes of the AAS API `/shells/<aas_id>/submodels` are the same already implemented as the submodel API, so we return a redirect here, after checking that the AAS indeed has a reference to the requested submodel. `PUT` and `DELETE` are different, as we also have to update the AAS in this case, either by adding a new updated reference in case of a `PUT` request changes the submodel id, or by removing the submodel reference for `DELETE` requests.
Configuration menu - View commit details
-
Copy full SHA for c86283a - Browse repository at this point
Copy the full SHA c86283aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fad3f2 - Browse repository at this point
Copy the full SHA 7fad3f2View commit details
Commits on Mar 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 88bad21 - Browse repository at this point
Copy the full SHA 88bad21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c4a9f2 - Browse repository at this point
Copy the full SHA 3c4a9f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b11f672 - Browse repository at this point
Copy the full SHA b11f672View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e91f4d - Browse repository at this point
Copy the full SHA 5e91f4dView commit details
Commits on Mar 31, 2024
-
Merge pull request #27 from rwth-iat/http_api/add_aas_submodel_routes
adapter.http: implement AAS API submodel routes via redirects
Configuration menu - View commit details
-
Copy full SHA for 1f2a4a5 - Browse repository at this point
Copy the full SHA 1f2a4a5View commit details -
Merge pull request #28 from rwth-iat/http_api/move_asset_information_…
…routes_to_submount adapter.http: move `asset-information` routes to a submount
Configuration menu - View commit details
-
Copy full SHA for f1817f6 - Browse repository at this point
Copy the full SHA f1817f6View commit details -
Merge pull request #29 from rwth-iat/http_api/fix_qualifier_routes
adapter.http: fix qualifier routes
Configuration menu - View commit details
-
Copy full SHA for 8083001 - Browse repository at this point
Copy the full SHA 8083001View commit details -
adapter.http: rename
IdentifierConverter
toBase64URLConverter
The `IdentifierConverter` is also used to decode values from URLs, that aren't necessarily Identifiers, e.g. Qualifier types. Thus, a name like `Base64URLConverter` suits its use better and is also more expressive. For the same reasons, the key `identifier`, which was used for the `IdentifierConverter`, is renamed to `base64url`.
Configuration menu - View commit details
-
Copy full SHA for c27e47f - Browse repository at this point
Copy the full SHA c27e47fView commit details -
Merge pull request #30 from rwth-iat/http_api/rename_IdentifierConverter
adapter.http: rename `IdentifierConverter` to `Base64URLConverter`
Configuration menu - View commit details
-
Copy full SHA for 301e924 - Browse repository at this point
Copy the full SHA 301e924View commit details
Commits on Apr 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 973f81a - Browse repository at this point
Copy the full SHA 973f81aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 237aebe - Browse repository at this point
Copy the full SHA 237aebeView commit details -
adapter.http: refactor AAS retrieval
Methods `_get_shell()` and `_get_shells()` are added similarly to `_get_submodel()` and `_get_submodels()`, which were previously added in ffb833b. Furthermore, when requesting multiple AAS/Submodels, we're now also updating these in `_get_all_obj_of_type()` before returning them. Finally, updating AAS/Submodel objects is also moved to `_get_obj_ts()`.
Configuration menu - View commit details
-
Copy full SHA for 74ea148 - Browse repository at this point
Copy the full SHA 74ea148View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a5a360 - Browse repository at this point
Copy the full SHA 2a5a360View commit details -
Merge pull request #31 from rwth-iat/http_api/refactor_aas_retrieval
adapter.http: refactor AAS retrieval
Configuration menu - View commit details
-
Copy full SHA for 85d70ac - Browse repository at this point
Copy the full SHA 85d70acView commit details -
Merge pull request #32 from rwth-iat/http_api/remove_outdated_todos
adapter.http: remove outdated TODOs
Configuration menu - View commit details
-
Copy full SHA for 6638498 - Browse repository at this point
Copy the full SHA 6638498View commit details
Commits on Apr 5, 2024
-
adapter.http: implement the attachment routes (#33)
* adapter.http: implement the attachment routes * adapter.http: fix codestyle errors * adapter.http: implement recommended changes * adapter.http: implement new recommended changes
Configuration menu - View commit details
-
Copy full SHA for 10f3301 - Browse repository at this point
Copy the full SHA 10f3301View commit details -
Configuration menu - View commit details
-
Copy full SHA for b591b32 - Browse repository at this point
Copy the full SHA b591b32View commit details -
Merge branch 'feature/http_api' of github.com:rwth-iat/basyx-python-s…
…dk into http_api/implement_AAS_reference_routes
Configuration menu - View commit details
-
Copy full SHA for 41d32ae - Browse repository at this point
Copy the full SHA 41d32aeView commit details -
Merge pull request #34 from rwth-iat/http_api/implement_AAS_reference…
…_routes adapter.http: implement the AAS reference routes
Configuration menu - View commit details
-
Copy full SHA for 384a861 - Browse repository at this point
Copy the full SHA 384a861View commit details
Commits on Apr 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1b86865 - Browse repository at this point
Copy the full SHA 1b86865View commit details -
Configuration menu - View commit details
-
Copy full SHA for d323ecb - Browse repository at this point
Copy the full SHA d323ecbView commit details
Commits on Apr 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 76d9db0 - Browse repository at this point
Copy the full SHA 76d9db0View commit details
Commits on Apr 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8ca847d - Browse repository at this point
Copy the full SHA 8ca847dView commit details
Commits on Apr 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 458e401 - Browse repository at this point
Copy the full SHA 458e401View commit details
Commits on May 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d4cf4b2 - Browse repository at this point
Copy the full SHA d4cf4b2View commit details
Commits on May 14, 2024
-
Merge pull request #35 from rwth-iat/http_api/implement_pagination
adapter.http: implement the pagination
Configuration menu - View commit details
-
Copy full SHA for 1d70049 - Browse repository at this point
Copy the full SHA 1d70049View commit details
Commits on May 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9a09638 - Browse repository at this point
Copy the full SHA 9a09638View commit details
Commits on May 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6d47a73 - Browse repository at this point
Copy the full SHA 6d47a73View commit details -
Merge pull request #36 from rwth-iat/http_api/not_implemented_routes
adapter.http: implement warning for not implemented routes
Configuration menu - View commit details
-
Copy full SHA for 7d6ad00 - Browse repository at this point
Copy the full SHA 7d6ad00View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae1f6fe - Browse repository at this point
Copy the full SHA ae1f6feView commit details
Commits on Jun 7, 2024
-
Merge pull request #38 from rwth-iat/http_api/fix_codestyle
adapter.http: remove excess blank line
Configuration menu - View commit details
-
Copy full SHA for dd1839b - Browse repository at this point
Copy the full SHA dd1839bView commit details -
Merge pull request #37 from rwth-iat/main
merge `main` in `feature/http_api`
Configuration menu - View commit details
-
Copy full SHA for 435bf90 - Browse repository at this point
Copy the full SHA 435bf90View commit details
Commits on Jun 13, 2024
-
adapter.aasx: allow deleting files from
SupplementaryFileContainer
`AbstractSupplementaryFileContainer` and `DictSupplementaryFileContainer` are extended by a `delete_file()` method, that allows deleting files from them. Since different files may have the same content, references to the files contents in `DictSupplementaryFileContainer._store` are tracked via `_store_refcount`. A files contents are only deleted from `_store`, if all filenames referring to these these contents are deleted, i.e. if the refcount reaches 0.
Configuration menu - View commit details
-
Copy full SHA for 9b7a7f6 - Browse repository at this point
Copy the full SHA 9b7a7f6View commit details -
adapter.http: fix a
DeprecationWarning
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC)
Configuration menu - View commit details
-
Copy full SHA for 367746c - Browse repository at this point
Copy the full SHA 367746cView commit details -
adapter.http: allow retrieving and modifying
File
attachments via APIThis change makes use of the `SupplementaryFileContainer` interface of the AASX adapter. It allows the API to operate seamlessly on AASX files, including the contained supplementary files, without having to access the filesystem. Furthermore, the support for the modification of `Blob` values is removed (the spec prohibits it).
Configuration menu - View commit details
-
Copy full SHA for ed012d0 - Browse repository at this point
Copy the full SHA ed012d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fd980a - Browse repository at this point
Copy the full SHA 5fd980aView commit details
Commits on Jun 15, 2024
-
Merge pull request #40 from rwth-iat/http_api/fix_datetime_deprecatio…
…n_warning adapter.http: fix a `DeprecationWarning`
Configuration menu - View commit details
-
Copy full SHA for 2b81898 - Browse repository at this point
Copy the full SHA 2b81898View commit details -
Merge pull request #41 from rwth-iat/http_api/file_attachments
adapter.http: allow retrieving and modifying `File` attachments via API
Configuration menu - View commit details
-
Copy full SHA for 18b128b - Browse repository at this point
Copy the full SHA 18b128bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72c75d7 - Browse repository at this point
Copy the full SHA 72c75d7View commit details -
Merge pull request #42 from rwth-iat/http_api/custom_base_path
adapter.http: allow changing the API base path
Configuration menu - View commit details
-
Copy full SHA for 69f3955 - Browse repository at this point
Copy the full SHA 69f3955View commit details
Commits on Jun 19, 2024
-
adapter.http: remove nonfunctional 'Not Implemented' check
This check was intended to return 501 instead of 404 for routes that haven't been implemented. However, we explicitly implement these routes to return 501 now anyway, returning 501 for all other paths would be semantically incorrect anyway and the check never worked.
Configuration menu - View commit details
-
Copy full SHA for 8e66b2c - Browse repository at this point
Copy the full SHA 8e66b2cView commit details
Commits on Jun 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 14a6013 - Browse repository at this point
Copy the full SHA 14a6013View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6af1af - Browse repository at this point
Copy the full SHA a6af1afView commit details -
Merge pull request #46 from rwth-iat/merge/main_in_feature_http_api
Merge/main in feature http api
Configuration menu - View commit details
-
Copy full SHA for b0e1148 - Browse repository at this point
Copy the full SHA b0e1148View commit details -
chore: bump werkzeug to >=3.0.3
Werkzeug 3.0.3 contains a fix for [1], so by requiring at least 3.0.3, we can remove unnecessary 'type: ignore' comments from the http adapter. [1]: pallets/werkzeug#2836
Configuration menu - View commit details
-
Copy full SHA for cb0c281 - Browse repository at this point
Copy the full SHA cb0c281View commit details -
adapter.http: improve type hints
Remove 'type: ignore' comments now that we require werkzeug >=3.0.3 [1]. Furthermore, fix the type hint of `WSGIApp._get_slice()` and make two other 'type: ignore' comments more explicit. [1]: pallets/werkzeug#2836
Configuration menu - View commit details
-
Copy full SHA for 5191fef - Browse repository at this point
Copy the full SHA 5191fefView commit details -
Merge pull request #43 from rwth-iat/http_api/fix_type_ignore_comments
adapter.http: remove and improve `type: ignore` comments
Configuration menu - View commit details
-
Copy full SHA for f57a640 - Browse repository at this point
Copy the full SHA f57a640View commit details -
Merge branch 'feature/http_api' into http_api/remove_nonfunctional_no…
…t_implemented_check
Configuration menu - View commit details
-
Copy full SHA for 00e87b6 - Browse repository at this point
Copy the full SHA 00e87b6View commit details -
Merge pull request #44 from rwth-iat/http_api/remove_nonfunctional_no…
…t_implemented_check adapter.http: remove nonfunctional 'Not Implemented' check
Configuration menu - View commit details
-
Copy full SHA for b826036 - Browse repository at this point
Copy the full SHA b826036View commit details
Commits on Jul 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4afc6ea - Browse repository at this point
Copy the full SHA 4afc6eaView commit details -
adapter.http: remove trailing slashes from routes
This removes trailing slashes (and redirects to paths with trailing slashes) from the API and makes it compatible with the PCF2 showcase and other webapps. Previously, all routes were implemented with a trailing slash, e.g. `/submodels/` instead of `/submodels`. While the API spec only specifies the routes without a trailing slash, this has the advantage of being compatible with requests to the path with a trailing slash and without trailing slash, as werkzeug redirects requests to the slash-terminated path, if available. However, this poses a problem with browsers that make use of [CORS preflight requests][1] (e.g. Chromium-based browsers). Here, before doing an actual API request, the browser sends an `OPTIONS` request to the path it wants to request. This is done to check potential CORS headers (e.g. `Access-Control-Allow-Origin`) for the path, without retrieving the actual data. Our implementation doesn't support `OPTIONS` requests, which is fine. After the browser has received the response to the preflight request (which may or may not have been successful), it attempts to retrieve the actual data by sending the request again with the correct request method (e.g. `GET`). With our server this request now results in a redirect, as we redirect to the path with a trailing slash appended. This is a problem, as the browser didn't send a CORS preflight request to the path it is now redirected to. It also doesn't attempt to send another CORS preflight request, as it already sent one, with the difference being the now slash-terminated path. Thus, following the redirect is prevented by CORS policy and the data fails to load. By making the routes available via non-slash-terminated paths we avoid the need for redirects, which makes the server compatible with webapps viewed in browsers that use preflight requests. Requests to slash-terminated paths will no longer work (they won't redirect to the path without trailing slash). This shouldn't be a problem though, as the API is only specified without trailing slashes anyway.
Configuration menu - View commit details
-
Copy full SHA for 980dd7d - Browse repository at this point
Copy the full SHA 980dd7dView commit details
Commits on Jul 22, 2024
-
Merge pull request #49 from rwth-iat/http_api/improve_codestyle
adapter.http: remove unnecessary generator expression
Configuration menu - View commit details
-
Copy full SHA for f6019cc - Browse repository at this point
Copy the full SHA f6019ccView commit details -
Merge pull request #50 from rwth-iat/http_api/no_trailing_slash
adapter.http: remove trailing slashes from routes
Configuration menu - View commit details
-
Copy full SHA for 4b67798 - Browse repository at this point
Copy the full SHA 4b67798View commit details
Commits on Aug 15, 2024
-
adapter.http: add documentation of not implemented features (#52)
This adds a module docstring to `adapter.http`, that details which features from the Specification of the Asset Administration Shell Part 2 (API) were not implemented.
Configuration menu - View commit details
-
Copy full SHA for 4aa818c - Browse repository at this point
Copy the full SHA 4aa818cView commit details