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

Update Endpoint REST API to support CORS endpoints #3326

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

lorthirk
Copy link

@lorthirk lorthirk commented Jun 4, 2021

Endpoints REST API Update to support CORS origins after the merge of #3278

Related Issue
No relate issues

Description of the solution adopted
A new endpointType query parameter has been added to the GET v1/{scopeId}/endpoints, POST v1/{scopeId}/endpoints/_query and POST v1/{scopeId}/endpoints/_count resources.
Other resources were already supporting endpointType in model objects.

@lorthirk lorthirk added Enhancement This PR/Issue improves an part of Kapua REST API We hope to REST everyday labels Jun 4, 2021
@lorthirk lorthirk requested a review from Coduz June 4, 2021 14:09
@codecov
Copy link

codecov bot commented Jun 4, 2021

Codecov Report

Merging #3326 (4c2e315) into develop (d9b25d7) will decrease coverage by 0.84%.
The diff coverage is 0.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #3326      +/-   ##
=============================================
- Coverage      26.61%   25.76%   -0.85%     
+ Complexity       663      651      -12     
=============================================
  Files           1488     1488              
  Lines          30083    30083              
  Branches        2508     2508              
=============================================
- Hits            8006     7751     -255     
- Misses         21466    21721     +255     
  Partials         611      611              
Impacted Files Coverage Δ
.../api/core/auth/KapuaTokenAuthenticationFilter.java 0.00% <0.00%> (ø)
.../kapua/app/api/core/filter/CORSResponseFilter.java 0.00% <0.00%> (ø)
.../app/api/resources/v1/resources/EndpointInfos.java 0.00% <0.00%> (ø)
...job/engine/exception/KapuaJobEngineErrorCodes.java 0.00% <0.00%> (-100.00%) ⬇️
...transport/mqtt/exception/MqttClientErrorCodes.java 0.00% <0.00%> (-100.00%) ⬇️
...ice/scheduler/trigger/quartz/TriggerQueryImpl.java 0.00% <0.00%> (-100.00%) ⬇️
...cheduler/trigger/quartz/TriggerListResultImpl.java 0.00% <0.00%> (-100.00%) ⬇️
...transport/exception/TransportTimeoutException.java 0.00% <0.00%> (-75.00%) ⬇️
...mqtt/exception/MqttClientUnsubscribeException.java 0.00% <0.00%> (-75.00%) ⬇️
...nt/exception/DeviceManagementTimeoutException.java 0.00% <0.00%> (-75.00%) ⬇️
... and 43 more

Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
@lorthirk lorthirk force-pushed the feature-corsApiEndpoint branch from 3e6f1ce to 4c2e315 Compare June 7, 2021 09:47
@lorthirk lorthirk merged commit 2eb023d into eclipse:develop Jun 7, 2021
@lorthirk lorthirk deleted the feature-corsApiEndpoint branch June 7, 2021 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This PR/Issue improves an part of Kapua REST API We hope to REST everyday
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant