Skip to content

PersonaAPI is a small system for managing company's people.

License

Notifications You must be signed in to change notification settings

dio-projects/persona-api

Repository files navigation

English | Portuguese

PersonaAPI

Java Version Latest Commit License

PersonaAPI is a project developed with Spring Boot for a Bootcamp from Digital Innovation One, with the objective of developing a small system for managing company's people throught a REST API.

How to Use

First, clone this repository, access the directory and run the following command to execute the API:

$ ./gradlew bootRun
> Task :bootRun
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
:: Spring Boot ::

From then on, the API should already be working. To check it, go to:

http://localhost:8080/api/v1/person

Or to access the database management console, go to:

http://localhost:8080/database/h2

Check the application.yml file to see the defined variables of the database. By default:

spring:
    datasource:
        url: jdbc:${database}:file:./.datasources/persona-api
        username: dbuser
        password: