Giter Site home page Giter Site logo

finalproject's Introduction

Welcome to API Tugas Akhir “Sistem Rekomendasi berbasis Graph Database”

API yang ada pada repositori ini digunakan untuk melakukan pengumpulan data serta penghasilan rekomendasi.

Documentation

Get All Node

url:: /api/v1/nodes
method:: GET
return:: JSON
param:: --

output::
{
  buyer: {
    0: {
    userid: "dvdekow"
    }
    1: {
    userid: "davideko"
    }
    2: {
    userid: "kowib"
    }
  }
  message: "OK"
}

Create Node

Create Buyer Node
  url:: /api/v1/nodes
  method:: POST
  return:: JSON
  param:: userid:string

  output::
  {
    userid: "david006"
    node: {
            userid: "david006"
    }
    message: "Buyer node has been created"
  }

Create Item Node
  url:: /api/v1/nodes
  method:: POST
  return:: JSON
  param:: itemid:string

  output::
  {
    itemid: "david006"
    node: {
            ]itemid: "zfone2"
    }
    message: "Item node has been created"
  }

Update/Add Node Attributes

Update/Add Buyer Node Attributes
  url:: /api/v1/node/{userid}
  method:: PUT
  return:: JSON
  param:: change:string
  param:: value:string

  output::
  {
    userid: "david006"
    node: {
            userid: "david001"
    }
    message: "Node attributes updated"
  }

Update/Add Item Node Attributes

url:: /api/v1/node/{itemid}
method:: PUT
return:: JSON
param:: change:string
param:: value:string

output::
{
  itemid: "zfone2"
  node: {
          itemid: "zfone5"
  }
  message: "Node attributes updated"
}

Create relation

Pada API ini jika Node Buyer atau Item belum dibuat maka Node tersbut akan dibuat terlebih dahulu lalu dibuat relasinya. Untuk type yang digunakan sebagai parameter adalah "look" dan "purchase"

url:: /api/v1/relations/
method:: POST
return:: JSON
param:: userid:string
param:: itemid:string
param:: type:string

output::
{
  relation: {
  rating: 1,
  type: "look"
  }
  message: "look relation has been created"
}

Get Recommendation

url:: /api/v1/recommendation/{userid}
method:: GET
return:: JSON

output::
{
  recommendation: {
    columns: [
      "Item"
      "Recommendation"
    ]
    data: [
     [
      "hp345",
      1
     ]
   ]
  }
  message: "Recommendation generated"
}

finalproject's People

Contributors

lnyuqqx0rh avatar xinuc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.