Giter Site home page Giter Site logo

luisoos / better-github-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 69 KB

A better GitHub API that delivers basic information about a user and their pinned repositories to you. ๐Ÿ’ซ

Home Page: https://better-github-api.luisoos.repl.co/

License: GNU General Public License v3.0

TypeScript 100.00%
api rest rest-api

better-github-api's Introduction

Better GitHub API

Better GitHub API delivers basic information about a user and their pinned repositories to you. โœจ

Programmed in TypeScript using ts-node and fetching content using axios it delivers content blazingly fast! ๐Ÿš€โœจ

Usage

Route

GET /:username returns the user's profile and pinned repositories.

Response Schema

    {
        "login": string,
        "id": number,
        "node_id": string,
        "avatar_url": string,
        "gravatar_id": string,
        "url": string,
        "html_url": string,
        "followers_url": string,
        "following_url": string,
        "gists_url": string,
        "starred_url": string,
        "subscriptions_url": string,
        "organizations_url": string,
        "repos_url": string,
        "events_url": string,
        "received_events_url": string,
        "type": string,
        "site_admin": boolean,
        "name": string,
        "company": string,
        "blog": string,
        "location": string,
        "email": string,
        "hireable": boolean,
        "bio": string,
        "twitter_username": string,
        "public_repos": number,
        "public_gists": number,
        "followers": number,
        "following": number,
        "created_at": string,
        "updated_at": string,
        "pinned_repos": Array [
            { 
                "owner": string,
                "repo": string,
                "internal_link": string,
                "link": string,
                "description": string,
                "language": string,
                "languageColor": string,
                "stars": number,
                "forks": number
            }
            ...
        ],
        "pinned_repos_total_stars": number
    }
    

Possible errors

404 - User not found

{ 
    "status": 404, 
    "message": "User not found" 
}

Custom error schema

{ 
    "status": "error.response.status", 
    "message": "error.response.statusText" 
}

Installation

npm install
npm run start

A web server should be running on http://localhost:3000/.

better-github-api's People

Contributors

luisoos 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.