Skip to content

Aspects API

This document describes the APIs of Aspecta for users' aspects.

Developer: Query a user's skill(s)

Query a user's specific skill, or all skills

  • Endpoint

    GET https://api.aspecta.ai/v1/aspects/developers/skills/me

  • Request

    We will use the access token to identify the user. The following table lists the parameters that you can include in the skill request.

    ParameterDescription
    nameOptional string The name of the skill. It will query all skills of the user if no name specified. To know which skills are available, see developer skills.
    • The following snippet shows a sample request to query skill security of a user:

      http
      POST /token HTTP/1.1
      Host: https://api.aspecta.ai/v1/aspects/developers/skills/me
      Content-Type: application/x-www-form-urlencoded
      Authorization: Bearer 7/Lvq3XoJkU1oNz8A82v3b6T2I
      
      name=security

      CURL Example

      bash
      curl -H "Authorization: Bearer 7/Lvq3XoJkU1oNz8A82v3b6T2I" \
      https://api.aspecta.ai/v1/aspects/developers/skills/me \
      -d "name=security"
    • The following snippet shows a sample request to query all skills of the user:

      http
      POST /token HTTP/1.1
      Host: https://api.aspecta.ai/v1/aspects/developers/skills/me
      Content-Type: application/x-www-form-urlencoded
      Authorization: Bearer 7/Lvq3XoJkU1oNz8A82v3b6T2I

      CURL Example

      bash
      curl -H "Authorization: Bearer 7/Lvq3XoJkU1oNz8A82v3b6T2I" https://api.aspecta.ai/v1/aspects/developers/skills/me
  • Response

    The developer skills of the user will be returned in the tree structure. It will returned the highest level's skills in list form, and their children skills will be contained in the children field. The highest level's skills are shown in the innermost layer of the skills sunburst chart.

    skill sunburst chart

    Fields of a skill

    FieldDescription
    namestring The name of the skill. To know which skills are available, see developer skills.
    rankingfloat The ranking of the skill, which represent the skill profiency ranking of all github users and the range is (0, 1], and the higher the better. null if the skill is the first level skill.
    profiencyint The profiency score of the skill. null if the skill is the first level skill.
    childrenlist The children skills of the skill.

    The following snippet shows a sample response:

    json
    [
        {
            "name": "security",
            "ranking": 0.6166666666666667,
            "proficiency": 165,
            "children": [
                {
                    "name": "malware-analysis",
                    "ranking": 0.5882352941176471,
                    "proficiency": 231,
                    "children": []
                },
                {
                    "name": "authentication",
                    "ranking": 0.575,
                    "proficiency": 145,
                    "children": [
                        {
                            "name": "oauth",
                            "ranking": 0.5671641791044777,
                            "proficiency": 129,
                            "children": []
                        }
                    ]
                },
                {
                    "name": "network-security",
                    "ranking": 0.7166666666666667,
                    "proficiency": 487,
                    "children": []
                }
            ]
        },
        {
            "name": "networking",
            "ranking": 0.675,
            "proficiency": 165,
            "children": [
                {
                    "name": "routing",
                    "ranking": 0.575,
                    "proficiency": 123,
                    "children": []
                }
            ]
        }
    ]