Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1019 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 1019 Bytes

Spring Boot REST API with Spring Security 🔒, Spring HATEOAS 📃, and Thymeleaf 🍃

Simple Spring Boot API that utilizes OMDB API to allow users to search for movies and save them in their personal account.

This projects assumes that the backend DB is PostgreSQL. There also a CORS Filter in place that currently allows requests from localhost:5500 (as well as whatever address the server is running on).

To use with PostgreSQL, you will need to setx DB_PASS <password> or export DB_PASS=<password>. (or just edit the whole application.properties).

Example usage:

GET /user/<id>
{
    "id": "3c934579-f734-44af-974d-e1e2ec78afed",
    "email": "test@test.gr",
    "links": [
        {
            "rel": "self",
            "href": "http://localhost:8080/user/3c934579-f734-44af-974d-e1e2ec78afed"
        },
        {
            "rel": "movies",
            "href": "http://localhost:8080/user/3c934579-f734-44af-974d-e1e2ec78afed/movies"
        }
    ]
}