项目作者: maikeulb

项目描述 :
API Gateway
高级语言: F#
项目地址: git://github.com/maikeulb/GithubApiGateway.git
创建时间: 2018-02-25T05:31:40Z
项目社区:https://github.com/maikeulb/GithubApiGateway

开源协议:

下载


Github API Gateway

API Gateway for Github powered by Reactive Extensions (Rx). Built following
this blog
post
.

Facade API hiding the complexity for calling multiple
services by exposing a single endpoint. The exposed API retrieves 3 components:
User, Popular Repos, and Languages.

Technology

  • Suave
  • Rx

Endpoints

Method URI Action
GET /api/profile/{username} User profile information

Sample Usage

http get http://localhost:8080/api/profiles/miguelgrinberg (my favorite python/flask instructor)

  1. "avatarUrl": "https://avatars0.githubusercontent.com/u/2715854?v=4",
  2. "name": "Miguel Grinberg",
  3. "popularRepositories": [
  4. {
  5. "languages": [
  6. "Python"
  7. ],
  8. "name": "Flask-HTTPAuth",
  9. "stars": 453
  10. },
  11. {
  12. "languages": [
  13. "Python",
  14. "JavaScript",
  15. "CSS",
  16. "HTML",
  17. "Shell"
  18. ],
  19. "name": "flack",
  20. "stars": 294
  21. },
  22. {
  23. "languages": [
  24. "Python",
  25. "HTML",
  26. "Shell"
  27. ],
  28. "name": "flask-celery-example",
  29. "stars": 396
  30. }
  31. ]
  32. }

Run

You need Mono, forge, and fake.

  1. forge fake run
  2. Go to http://localhost:8080 and visit the above endpoint

TODO

Dockerfile