Skip to content

diegobarbosa/ghder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

GHDER - GitHub Downloader

Intro

This repository contains a programming challenge for the job of FullStack Developer.

It's a API that returns the quantity of lines of the files in a GitHub repository.

Tools

API EndPoint

https://ghder.herokuapp.com/

By Default, this address will return the Swagger documentation page. Is possible to execute (test) the API in this docs page.

The API has the form: https://ghder.herokuapp.com/api/service/{userName}/{repoName}

The API accepts Json and XML. Calling the API with curl:

curl -X GET "https://ghder.herokuapp.com/api/Service/diegobarbosa/ghdertest" -H "accept: text/json"
curl -X GET "https://ghder.herokuapp.com/api/Service/diegobarbosa/ghdertest" -H "accept: text/xml"

Without accepts Header, the api defaults to Json format. Calling from the browser:

https://ghder.herokuapp.com/api/Service/diegobarbosa/ghdertest

Running the docker image locally

Execute the following commands in your CMD:

docker pull diegobarbosa/ghder

docker run -d -p 8080:80 --name ghder diegobarbosa/ghder

Access the url http://localhost:8080.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published