{"id":19319803,"url":"https://github.com/hyperoslo/hyper-recipes","last_synced_at":"2025-04-22T17:32:22.732Z","repository":{"id":28445530,"uuid":"31960884","full_name":"hyperoslo/hyper-recipes","owner":"hyperoslo","description":null,"archived":false,"fork":false,"pushed_at":"2015-11-17T17:01:22.000Z","size":2921,"stargazers_count":16,"open_issues_count":2,"forks_count":4,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-05-09T16:36:38.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperoslo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-10T14:08:59.000Z","updated_at":"2024-05-09T16:36:38.457Z","dependencies_parsed_at":"2022-07-25T17:52:48.041Z","dependency_job_id":null,"html_url":"https://github.com/hyperoslo/hyper-recipes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fhyper-recipes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fhyper-recipes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fhyper-recipes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fhyper-recipes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperoslo","download_url":"https://codeload.github.com/hyperoslo/hyper-recipes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223902232,"owners_count":17222336,"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","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":[],"created_at":"2024-11-10T01:25:18.850Z","updated_at":"2024-11-10T01:25:19.429Z","avatar_url":"https://github.com/hyperoslo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n\nThis is the backend for the Hyper Recipes app. To be able to use it, you will need an access token that your contact inside Hyper will provide you with when you begin your quest. This is helpful so other applicants don't modify your recipes in any way.\n\nThe base HTTP endpoints is: `http://hyper-recipes.herokuapp.com`\n\n\n## Retrieve recipes\n\n`GET`: `/recipes`\n\nSample:\n\n```json\n[\n  {\n    \"id\": 437,\n    \"name\": \"Strawberries and Cream Cake\",\n    \"description\": \"Makes an elegant presentation without too much fuss.\",\n    \"instructions\": \"eee\",\n    \"favorite\": false,\n    \"difficulty\": 3,\n    \"created_at\": \"2014-09-29T10:43:00.072Z\",\n    \"updated_at\": \"2014-11-26T11:53:58.451Z\",\n    \"photo\": {\n      \"url\": \"https://hyper-recipes.s3.amazonaws.com/uploads/recipe/photo/437/Strawberries_and_Cream_Cake.jpg\",\n      \"thumbnail_url\": \"https://hyper-recipes.s3.amazonaws.com/uploads/recipe/photo/437/thumbnail_Strawberries_and_Cream_Cake.jpg\"\n    }\n  }\n]\n```\nIn Curl it would be something like that:\n```\ncurl -H 'Authorization: Token token=\"replace-with-token\"' http://hyper-recipes.herokuapp.com/recipes\n```\n\n## Create recipes\n\n`POST`: `/recipes`\n\n* **name:string** (obligatory field)\n* **difficulty:integer** (obligatory field) [Valid values: 1, 2 and 3]\n* description:text\n* instructions:text\n* favorite:boolean\n* recipe[photo]:image == Multipart form request\n\nSample:\n\n```json\n{\n  \"recipe\": {\n    \"name\": \"New name\",\n    \"difficulty\": 1\n  }\n}\n```\nIn Curl it would be something like that:\n```\ncurl -H 'Authorization: Token token=\"2e3e72bbbcfd13eb27f4\"' -d \"recipe[name]=Meatballs\" -d \"recipe[difficulty]=1\" http://hyper-recipes.herokuapp.com/recipes\n```\n\n## Update recipes\n\n`PUT` or `PATCH`: `/recipes/:id`\n\n* **name:string** (obligatory field)\n* **difficulty:integer** (obligatory field) [Valid values: 1, 2 and 3]\n* description:text\n* instructions:text\n* favorite:boolean\n* recipe[photo]:image == Multipart form request\n\nSample:\n\n```json\n{\n  \"recipe\": {\n    \"name\": \"New name\",\n    \"difficulty\": 1\n  }\n}\n```\nIn Curl it would be something like that:\n```\ncurl -H 'Authorization: Token token=\"0b71145b7474d575632b\"' -d \"recipe[name]=Meatballzz\" -d \"recipe[difficulty]=2\" -X PUT http://hyper-recipes.herokuapp.com/recipes/22\n```\n\n\n## Delete recipes\n\n`DELETE`: `/recipes/:id`\nIn Curl it would be something like that:\n```\ncurl -H 'Authorization: Token token=\"0b71145b7474d575632b\"' -X DELETE http://hyper-recipes.herokuapp.com/recipes/22\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2Fhyper-recipes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperoslo%2Fhyper-recipes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2Fhyper-recipes/lists"}