Only for learning purpose.
Warning
- Must do code formatting.
- Remove or dont add extra lines or spaces.
- Use better naming convention.
- Write unit test cases using mockito.
- Link issue with pull request.
- Add screenshot to pull request.
Login process written here: #71
var responseBody = pm.response.json();
// Extract the value field
var value = responseBody.value;
// Set the value as an environment variable
pm.environment.set("X-AUTH-TOKEN", value);
// Log the environment variable for verification
console.log("Environment variable set:", pm.environment.get("X-AUTH-TOKEN"));
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
https://medium.com/@alexander.volminger/ci-cd-for-java-maven-using-github-actions-d009a7cb4b8f
- Added Swagger Spring Doc Dependency
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.0.3</version>
</dependency>
- Added the property:
springdoc.enable-spring-security:false
inapplication.properties
so thatSpringDocSecurityConfiguration
bean wont be created and search for spring security related classes. - The endpoint is accessible at:
http://localhost:8080/swagger-ui/index.html