-
Notifications
You must be signed in to change notification settings - Fork 98
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
fix(rest): Create new endpoint for LicenseType in admin tab #2147
Conversation
020f0f4
to
5541267
Compare
5541267
to
d89c0d2
Compare
@@ -142,3 +142,15 @@ include::{snippets}/should_document_import_osadl_info/curl-request.adoc[] | |||
|
|||
===== Example response | |||
include::{snippets}/should_document_import_osadl_info/http-response.adoc[] | |||
|
|||
[[add-license-type]] | |||
==== create license type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change it to Create license type.
==== create license type | ||
|
||
A `POST` request help to create license type. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add request parameter for your POST request
public void should_document_import_osadl_info() throws Exception { | ||
String accessToken = TestHelper.getAccessToken(mockMvc, testUserId, testUserPassword); | ||
mockMvc.perform(post("/api/licenses/import/OSADL") | ||
.header("Authorization", "Bearer " + accessToken) | ||
.accept(MediaTypes.HAL_JSON)) | ||
.andExpect(status().isOk()); | ||
} | ||
|
||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use proper indentation
d89c0d2
to
7aacb90
Compare
As per your above comment, code has modified. Please retest. |
d861d16
to
98993c0
Compare
Testing was successful. |
@@ -126,19 +126,57 @@ include::{snippets}/should_document_get_download_license_archive/http-response.a | |||
|
|||
A `POST` request will upload license file. | |||
|
|||
[black]#Request parameter# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't style the headings with black.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
Signed-off-by: Nikesh kumar <[email protected]>
98993c0
to
d261f70
Compare
Code looks good. |
Issue: #2146
Suggest Reviewer
How To Test?
1: Login with Admin user.
Sample URL : http://localhost:8080/resource/api/licenses/addLicenseType
Checklist
Must: