Skip to content

Commit 4f43d90

Browse files
committed
REFACTORED Nav-bar, docs: UPDATED
1 parent babd4e6 commit 4f43d90

File tree

10 files changed

+30
-10
lines changed

10 files changed

+30
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Essentially it's a simple on-demand application backend for rapd-prototyping.
1515
Features include but not limited to:
1616

1717
- [Authentication](documents/AUTHENTICATION.MD)
18+
- [User Profiles](documents/USER_PROFILES.MD)
1819
- [User Roles](documents/USER_ROLES.MD)
1920
- [API](documents/API.md)
2021
- [Internationalization (i18n)](documents/INTERNATIONALIZATION.MD)

documents/API.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ And you will recieve a new **authenticationToken** for your application to be us
4545

4646
### Request Data with an Access Token
4747

48-
Now, that you have an **authenticationToken** you can request data from the application using that token. Based on the permission of the current user they will be able to CREATE, READ, UPDATE, and DELETE content in your application.
48+
Now, that you have an **authenticationToken** you can request data from the application using that token. Based on the permission of the current user they will be able to **CREATE**, **READ**, **UPDATE**, and **DELETE** content in your application.
4949

5050

5151
### API Rate Limiting
@@ -84,8 +84,8 @@ Since the SSL certificate is self signed, turn off the **SSL certificate verific
8484

8585
### Authentication, Person, Person Management URLs
8686

87-
- [Authentication API's](/AUTHENTICATION.MD)
88-
- [Person and Person Management API's](/USER_ROLES.MD)
87+
- [Authentication API's](documents/AUTHENTICATION.MD)
88+
- [Person and Person Management API's](documents/USER_ROLES.MD)
8989

9090
### URLs
9191

documents/AUTHENTICATION.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ If you have just installed Spring Boot Application Template you can login with t
4545
|`Admin1` |`password`|`ADMIN` |
4646
|`Admin2` |`password`|`ADMIN` |
4747
|`AdminTrainee1` |`password`|`ADMINTRAINEE`|
48-
|`AdminTrainee1` |`password`|`ADMINTRAINEE`|
48+
|`AdminTrainee2` |`password`|`ADMINTRAINEE`|
4949

5050
| URL | Method | Remarks | Sample Valid Request Body |
5151
|---------------------------------------------------------------------|--------|-----------------------------------------------|---------------------------|

documents/SCREENSHOTS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@
1818

1919
## Form
2020

21-
[![Built With](images/app-ui/form.png)](images/app-ui/form.png)
21+
[![Built With](images/app-ui/form.png)](images/app-ui/form.png)
22+
23+
## Profile
24+
25+
[![Built With](images/app-ui/profile.PNG)](images/app-ui/profile.PNG)

documents/TESTING.MD

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
</ul>
99
</details>
1010

11+
### Testing with Postman
12+
13+
You can test out your application by using a third-party tool called [Postman](https://www.postman.com/), this is a free app that you can download and you can view all the endpoints on the left and the API data on the right.
14+
15+
[![Postman](images/Postman.PNG)](images/Postman.PNG)
16+
17+
In order to download the End Points for the application you can find this file located here:
18+
19+
`documents/Spring Boot Application Template.postman_collection`
20+
1121
### Testing with Postman Runner
1222

1323
Import the **Spring Boot Application Template API.postman_test_run** file into postman and run the API tests.

documents/USER_PROFILES.MD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## User Profiles
2+
3+
### User Profile Page
4+
5+
Every user in your application will have a private profile page. By default the profile page is private, which means the profile is visible to the respective user only.
6+
7+
[![Built With](images/app-ui/profile.PNG)](images/app-ui/profile.PNG)

documents/images/Postman.PNG

99.9 KB
Loading
54 KB
Loading
4.25 KB
Loading

src/main/resources/templates/fragments/navigation.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
<li class="nav-item">
1919
<a class="nav-link" href="/sbat/index" th:text="#{navbar.home.text}"></i><span class="sr-only">(current)</span></a>
2020
</li>
21-
<li class="nav-item">
22-
<a class="nav-link" href="/sbat/tech-stack" th:text="#{navbar.tech-stack.text}"></span></a>
23-
</li>
24-
<li class="nav-item">
21+
<li class="nav-item" sec:authorize="isAuthenticated()">
2522
<a class="nav-link" href="/sbat/form" th:text="#{navbar.form.text}"></span></a>
2623
</li>
2724
<li class="nav-item" sec:authorize="isAuthenticated()">
@@ -34,9 +31,10 @@
3431
<a class="nav-link" href="/sbat/profile" th:text="#{navbar.profile.text}"></span></a>
3532
</li>
3633

37-
<li class="nav-item dropdown">
34+
<li class="nav-item dropdown" sec:authorize="isAuthenticated()">
3835
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" th:text="Help"></a>
3936
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
37+
<a class="dropdown-item notify-item" href="/sbat/tech-stack"><img src="/images/stack.PNG" alt="user-image" class="mr-1" height="12" th:text="#{navbar.tech-stack.text}"></a>
4038
<a class="dropdown-item notify-item" href="/sbat/docker"><img src="/images/docker.PNG" alt="user-image" class="mr-1" height="12" th:text="#{navbar.docker.text}"></a>
4139
<a class="dropdown-item notify-item" href="/sbat/architecture"><img src="/images/architecture.PNG" alt="user-image" class="mr-1" height="12" th:text="#{navbar.architecture.text}"></a>
4240
<a class="dropdown-item notify-item" href="/sbat/about"><img src="/images/about.jpg" alt="user-image" class="mr-1" height="12" th:text="#{navbar.about.text}"></a>

0 commit comments

Comments
 (0)