/secure-api-server-example

This example was built with the intention show how to authenticate Restful API.

Primary LanguageJavaMIT LicenseMIT

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:

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

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