Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java REST Service example

In this repository, you are going to find, an example of web services based on Java that interacts with a Maria Database through hibernate ORM

Requirements

  • MariaDB to storage the database
  • Netbeans 8.2 (I developed this project in Netbeans 8.2 but, you can use other IDE)
  • Any REST client (Don't you know what it is? hit here)

Installation

  • Clone this repository
  • The SQL script of the database is inside the db folder.
  • Runs the SQL script in the MariaDB client
  • Creates a new user in the table USER
  • Opens the Netbeans project server
  • Modifies the hibernate.cfg.xml file
    • hibernate.connection.url, it contains the URL of the host, the port, and the name of the database
    • hibernate.connection.username, it contains the username to access the database
    • hibernate.connection.password, it contains the password to access the database
  • Finally, run the project

Try it

At this point, you will be able to use the endpoints

  • GET path
  • POST new position
  • POST new destiny

I also shared the workspace of Insomnia (it is a REST Cient). So, you can try the web services.

Intregation

I developed a SPA to use these web services as a backend. You can find the angular project here

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages