Skip to content

jesperlandmer/2DV515-A1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2DV515-A1 API

Run

To run the project, download docker:

Start the project with docker-compose up -d --build. Visit localhost:80.

API

http://localhost/api

{
    "_links": {
        "self": {
            "href": "http://localhost:8080/api"
        },
        "user-based": {
            "href": "http://localhost:8080/api/ub",
            "title": "Get user-based recommendations"
        },
        "item-based": {
            "href": "http://localhost:8080/api/ib",
            "title": "Get item-based recommendations"
        }
    }
}

User-Based

http://localhost/api/ub

{
    "_links": {
        "self": {
            "href": "http://localhost:8080/api/ub",
            "title": "user-based"
        },
        "euclidean": {
            "href": "http://localhost:8080/api/ub/euclidean?_user=userName",
            "title": "Get movie recommendations for user using Euclidean"
        },
        "pearson": {
            "href": "http://localhost:8080/api/ub/pearson?_user=userName",
            "title": "Get movie recommendations for user using Pearson"
        }
    }
}

Item-Based

http://localhost:8080/api/ib

{
    "_links": {
        "self": {
            "href": "http://localhost:8080/api/ib",
            "title": "item-based"
        },
        "euclidean": {
            "href": "http://localhost:8080/api/ib/euclidean?_user=userName",
            "title": "Get movie recommendations for user using Euclidean"
        },
        "pregenerate": {
            "href": "http://localhost:8080/api/ib/pregenerate",
            "title": "Generate data for item-based recommendations using Euclidean"
        }
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published