Secure API Server Example
This example was built with the intention show how to authenticate Restful API.
Getting Started
Open the terminal. Put the commands below to download and start the project:
- $> git clone https://github.com/sergiovlvitorino/secure-api-server-example
- $> cd secure-api-server-example
- $> mvn package
- $> java -jar target/secureapiserverexample-1.0.0.jar
Prerequisites
- JDK 1.8
- Maven 3
Method's description
- (POST) - {url}/api/sign-up
Params(JSON) : username:$username, password:$password
- (POST) - {url}/api/sign-in
Params(JSON) : username:$username, password:$password
- (GET) - {url}/api/find/$userId
Headers : userId:$userId, bearer:$accessToken
Running tests
Open the terminal. Put the commands below to test:
- $> cd secure-api-server-example
- $> mvn clean test
Authors
- Sergio Vitorino - (https://github.com/sergiovlvitorino)
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details