Giter Club home page Giter Club logo

githubreadmeretriever's Introduction

GitHub Readme Retriever

Twitter: TheCodeTraveler

The GitHub Readme Retriever APIs allow you retrieve the README.md from any GitHub Repo.

GET README

Retrieve the README.md file from any public GitHub Repository.

Request

The API request requires two parameters: ownerName and repositoryName:

  • ownerName is the name of the GitHub user who owns the repository
  • repositoryName is the name of the GitHub Repository

Both values be extracted from the GitHub repository's url:

https://github.com/{ownerName}/{repositoryName}

curl --request GET 'https://githubreadmeretriever.azurewebsites.net/api/GetReadme/{ownerName}/{repositoryName}'

Response

{
    "readme": "string",
    "repositoryName": "string",
    "repositoryOwner": "string"
}

Example

To retrieve this repo's README.md, we'll use the following parameters:

  • ownerName: brminnick
  • repositoryName: GitHubReadmeRetriever
curl --request GET 'https://githubreadmeretriever.azurewebsites.net/api/GetReadme/brminnick/GitHubReadmeRetriever'
{
    "readme": "<div class=\"header\" align=\"center\">\n  <h1 align=\"center\">GitHub Readme Retriever</h1>\n</div>..."
    "repositoryName": "GitHubReadmeRetriever",
    "repositoryOwner": "brminnick"
}

GET ALL READMEs

Retrieve the README.md file from all private and public GitHub Repositories owned by the user.

Request

The API request requires two parameters: ownerName and token:

curl --request GET 'https://githubreadmeretriever.azurewebsites.net/api/GetReadmes/{ownerName}/{token}'

Response

[
  {
      "readme": "string",
      "repositoryName": "string",
      "repositoryOwner": "string"
  }
  {
      "readme": "string",
      "repositoryName": "string",
      "repositoryOwner": "string"
  }
]

Example

To retrieve the README.md for all of my repositories, we will use the following parameters:

  • ownerName: brminnick
  • token: debddf126115d5f193526a7f29fe980e525e497e

Note: This example is not using a real token. You can create your token by following these steps.

curl --request GET 'https://githubreadmeretriever.azurewebsites.net/api/GetReadmes/brminnick/debddf126115d5f193526a7f29fe980e525e497e'
[
  {
      "readme": "# AsyncAwaitBestPractices\n\n[![Build Status](https://brminnick.visualstudio.com/AsyncAwaitBestPractices/_apis/build/status/AsyncAwaitBestPractices-.NET%20Desktop-CI)](https://brminnick.visualstudio.com/AsyncAwaitBestPractices/_build/latest?definitionId=5)\n\n...",
      "repositoryName": "AsyncAwaitBestPractices",
      "repositoryOwner": "brminnick"
  }
  {
      "readme": "<div class=\"header\" align=\"center\">\n  <h1 align=\"center\">GitTrends: GitHub Insights</h1>\n</div>\n<p align=\"center\">\n  <a href=\"https://twitter.com/GitTrendsApp\">\n...",
      "repositoryName": "GitTrends",
      "repositoryOwner": "brminnick"
  }
  {
      "readme": "<div class=\"header\" align=\"center\">\n  <h1 align=\"center\">GitHub Readme Retriever</h1>\n</div>...",
      "repositoryName": "GitHubReadmeRetriever",
      "repositoryOwner": "brminnick"
  }
]

Resources

Cloud Backend

Author

๐Ÿ‘ค Brandon Minnick

Show your support

โญ๏ธ Star the GitHub Repo

githubreadmeretriever's People

Contributors

azureadvocatebit avatar brminnick avatar

Stargazers

 avatar

Watchers

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