sb-github / extractor

2 stars 0 forks source link

Create endpoint for getting graph_skill by crawler_id #20

Closed sb-github closed 6 years ago

sb-github commented 6 years ago

Receive array of skills with subskills:

[
  {  
    "crawler_id": "ObjectId",  
    "skill": "Java",
    "connects": [
      {
        "subskill": "MySQL",
        "weight": 5
      }, {
        "subskill": "Spring",
        "weight": 10
      }
    ]
  }, {  
    "crawler_id": "ObjectId",  
    "skill": "PHP",
    "subskills": [
      {
        "subskill": "MySQL",
        "weight": 12
      }, {
        "subskill": "HTML",
        "weight": 30
      }
    ]
  }
]
AlexanderTorchynskyi commented 6 years ago

you can get a skill by this URL 192.168.128.232:8080/extractor/graphskill?crawler_id={your crawler_id}, by default it will render two skills with subskills, you can set paging by adding parameter page and size; example: 192.168.128.232:8080/extractor/graphskill?crawler_id=5a609c5059c66de3dbcba0d9&page=0&size=2