{"id":18921002,"url":"https://github.com/frpouly/fibonacci_api","last_synced_at":"2025-08-11T09:20:10.582Z","repository":{"id":40621326,"uuid":"320689283","full_name":"frpouly/fibonacci_API","owner":"frpouly","description":"An API to compute Fibonacci numbers and inverted Fibonacci numbers.","archived":false,"fork":false,"pushed_at":"2023-03-16T07:31:16.000Z","size":141,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-24T22:33:50.050Z","etag":null,"topics":["api-rest","fibonacci","fibonacci-generator","ruby","sinatra"],"latest_commit_sha":null,"homepage":"https://fibo-api.herokuapp.com/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frpouly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-11T21:37:07.000Z","updated_at":"2022-02-18T15:49:19.000Z","dependencies_parsed_at":"2025-02-20T21:41:05.715Z","dependency_job_id":"592e7afa-1014-4acd-b69e-6f2c56a2d8e0","html_url":"https://github.com/frpouly/fibonacci_API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/frpouly/fibonacci_API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frpouly%2Ffibonacci_API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frpouly%2Ffibonacci_API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frpouly%2Ffibonacci_API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frpouly%2Ffibonacci_API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frpouly","download_url":"https://codeload.github.com/frpouly/fibonacci_API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frpouly%2Ffibonacci_API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269857964,"owners_count":24486448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-rest","fibonacci","fibonacci-generator","ruby","sinatra"],"created_at":"2024-11-08T10:44:58.510Z","updated_at":"2025-08-11T09:20:10.473Z","avatar_url":"https://github.com/frpouly.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fibonacci_API\n\n## Routes :\n\n* `/` : a tiny webpage where you will be able to interrogate the API\n* `/api/v1/fibonacci/number` : returns the result of Fibonacci(number)\n* `/api/v1/inverted_fibonacci/number` : returns an integer n so that n = Fibonacci(number) number is in the Fibonacci sequence\n\n## Running the service :\n\n### Locally with Rack\n\nIf you already have a Ruby environment and bundler gem, you can run the application locally with :\n\n``` bash\nbunlde install\nrackup -p 3000 \u0026\n```\n\nAfterthat, you can access to the routes :\n``` bash\ncurl -i localhost:3000/api/v1/fibonacci/12\ncurl -i localhost:3000/api/v1/inverted_fibonacci/144\n```\nAnd the small index : [localhost:3000/](localhost:3000)\n\n### Using Docker\n\n```bash\ndocker-compose up -d\n```\n\nAnd then you should be able to access to the site :\n``` bash\ncurl -i localhost:3000/api/v1/fibonacci/12\ncurl -i localhost:3000/api/v1/inverted_fibonacci/144\n```\n\n### Heroku\n\nI deployed the API on Heroku, it available at the address : [https://fibo-api.herokuapp.com/](https://fibo-api.herokuapp.com/)\n\n\n## Tests\n\nI also implemented basic unit tests, you can run them with\n```bash\nrake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrpouly%2Ffibonacci_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrpouly%2Ffibonacci_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrpouly%2Ffibonacci_api/lists"}