Skip to content

A RESTfull API designed using Django to get details about a user from a coding profile.

Notifications You must be signed in to change notification settings

charitra1022/coding-profile-api-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coding-profile-api

A RESTful API designed using Django to get details about a user from a coding profile. It is implemented here.

Using the api

https://coding-profile-api.herokuapp.com/codingprofile/?&platform=<PLATFORM>&username=<USERNAME>

Optional parameter -> format=json for viewing a complete JSON format.


Supported Platforms

  1. codechef -> For CodeChef data
  2. gfg -> For GeeksForGeeks data
  3. leetcode -> For LeetCode data
  4. hackerrank -> For HackerRank data

Replace <PLATFORM> with any of the above.
Replace <USERNAME> with your user handle for the respective platforms.


Return Type

Returns JSON of the following format. Depends on platform.

  1. CodeChef

    {
        "username": "charitra1022",
        "platform": "codechef",
        "stars":    1,
        "rating":   1289,
        "status":   "200"
    }
    

  1. GeeksForGeeks

    {
        "username": "charitra1022",
        "platform": "gfg",
        "problems": 29,
        "status":   "200"
    }
    

  1. LeetCode

    {
        "username": "charitra1022",
        "platform": "leetcode",
        "problems": 45,
        "status":   "200"
    }
    

  1. HackerRank

    {
        "username": "charitra1022",
        "platform": "hackerrank",
        "badges":[
            "Problem Solving": {
                "stars": 2,
                "icon":  <SVG BADGE>,
            },
        ]
    
        "status":   "200"
    
    }
    
    Returns data of all badges you've earned


Implementation

This API is implemented on my portfolio site. See here.


References

  1. Vanilla JSON Path Picker