{"id":23084768,"url":"https://github.com/anuja-rahul/foodappapi","last_synced_at":"2026-04-28T11:03:19.787Z","repository":{"id":268286545,"uuid":"903775318","full_name":"anuja-rahul/FoodAppAPI","owner":"anuja-rahul","description":"Rest API made for a meal planning app using dotnet 9.0","archived":false,"fork":false,"pushed_at":"2024-12-17T06:52:19.000Z","size":479,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T15:13:10.507Z","etag":null,"topics":["csharp","dotnet","learning-by-doing","rest-api"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anuja-rahul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-12-15T14:33:54.000Z","updated_at":"2024-12-17T06:52:22.000Z","dependencies_parsed_at":"2024-12-15T20:19:55.478Z","dependency_job_id":"cf5da399-97d0-48df-87b6-45e39f460838","html_url":"https://github.com/anuja-rahul/FoodAppAPI","commit_stats":null,"previous_names":["anuja-rahul/foodappapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuja-rahul%2FFoodAppAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuja-rahul%2FFoodAppAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuja-rahul%2FFoodAppAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuja-rahul%2FFoodAppAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anuja-rahul","download_url":"https://codeload.github.com/anuja-rahul/FoodAppAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247024151,"owners_count":20870940,"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":["csharp","dotnet","learning-by-doing","rest-api"],"created_at":"2024-12-16T16:44:14.312Z","updated_at":"2026-04-28T11:03:19.744Z","avatar_url":"https://github.com/anuja-rahul.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FoodApp-API\n\nFoodApp is a simple ASP.NET Core application that provides an API for managing meal planning (breakfast). This README provides an overview of the project, including setup instructions, API documentation, and example request models.\n\n## Table of Contents\n\n- [Setup](#setup)\n- [API Documentation](#api-documentation)\n  - [Create Breakfast](#create-breakfast)\n  - [Get Breakfast](#get-breakfast)\n  - [Update Breakfast](#update-breakfast)\n  - [Delete Breakfast](#delete-breakfast)\n- [Example Request Models](#example-request-models)\n- [License](#license)\n- [Contributions](#contributions)\n\n## Setup\n\n1. Clone the repository:\n\n    ```sh\n    git clone https://github.com/anuja-rahul/FoodAppAPI.git\n    ```\n\n2. Navigate to the project directory:\n\n    ```sh\n    cd FoodApp\n    ```\n\n3. Restore the dependencies:\n\n    ```sh\n    dotnet restore\n    ```\n\n4. Run the application:\n\n    ```sh\n    dotnet run\n    ```\n\n## API Documentation\n\n### Create Breakfast\n\n- **Endpoint:** `POST /breakfast`\n- **Description:** Creates a new breakfast item.\n- **Request Body:**\n        ```json\n        {\n            \"name\": \"Pancakes\",\n            \"description\": \"Delicious fluffy pancakes\",\n            \"startDateTime\": \"2024-01-01T08:00:00Z\",\n            \"endDateTime\": \"2024-01-01T10:00:00Z\",\n            \"savory\": [\"Bacon\", \"Eggs\"],\n            \"sweet\": [\"Maple Syrup\", \"Blueberries\"]\n        }\n        ```\n- **Response:**\n        - **201 Created:** Returns the created breakfast item.\n\n### Get Breakfast\n\n- **Endpoint:** `GET /breakfast/{id}`\n- **Description:** Retrieves a breakfast item by its ID.\n- **Response:**\n        - **200 OK:** Returns the breakfast item.\n        - **404 Not Found:** If the breakfast item does not exist.\n\n### Update Breakfast\n\n- **Endpoint:** `PUT /breakfast/{id}`\n- **Description:** Updates an existing breakfast item.\n- **Request Body:**\n        ```json\n        {\n            \"name\": \"Updated Pancakes\",\n            \"description\": \"Even more delicious pancakes\",\n            \"startDateTime\": \"2024-01-01T08:00:00Z\",\n            \"endDateTime\": \"2024-01-01T10:00:00Z\",\n            \"savory\": [\"Bacon\", \"Eggs\"],\n            \"sweet\": [\"Maple Syrup\", \"Strawberries\"]\n        }\n        ```\n- **Response:**\n        - **204 No Content:** If the breakfast item was successfully updated.\n        - **201 Created:** If a new breakfast item was created.\n\n### Delete Breakfast\n\n- **Endpoint:** `DELETE /breakfast/{id}`\n- **Description:** Deletes a breakfast item by its ID.\n- **Response:**\n        - **204 No Content:** If the breakfast item was successfully deleted.\n        - **404 Not Found:** If the breakfast item does not exist.\n\n## Example Request Models\n\n### CreateBreakfastRequest\n\n```json\n{\n    \"name\": \"Pancakes\",\n    \"description\": \"Delicious fluffy pancakes\",\n    \"startDateTime\": \"2024-01-01T08:00:00Z\",\n    \"endDateTime\": \"2024-01-01T10:00:00Z\",\n    \"savory\": [\"Bacon\", \"Eggs\"],\n    \"sweet\": [\"Maple Syrup\", \"Blueberries\"]\n}\n```\n\n### UpsertBreakfastRequest\n\n```json\n{\n    \"name\": \"Updated Pancakes\",\n    \"description\": \"Even more delicious pancakes\",\n    \"startDateTime\": \"2024-01-01T08:00:00Z\",\n    \"endDateTime\": \"2024-01-01T10:00:00Z\",\n    \"savory\": [\"Bacon\", \"Eggs\"],\n    \"sweet\": [\"Maple Syrup\", \"Strawberries\"]\n}\n```\n\n### BreakfastResponse\n\n```json\n{\n    \"id\": \"d290f1ee-6c54-4b01-90e6-d701748f0851\",\n    \"name\": \"Pancakes\",\n    \"description\": \"Delicious fluffy pancakes\",\n    \"startDateTime\": \"2024-01-01T08:00:00Z\",\n    \"endDateTime\": \"2024-01-01T10:00:00Z\",\n    \"lastModifiedDateTime\": \"2024-01-01T07:00:00Z\",\n    \"savory\": [\"Bacon\", \"Eggs\"],\n    \"sweet\": [\"Maple Syrup\", \"Blueberries\"]\n}\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n## Contributions\n\nContributions are welcomed! If you have any ideas, suggestions, or improvements, feel free to open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuja-rahul%2Ffoodappapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanuja-rahul%2Ffoodappapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuja-rahul%2Ffoodappapi/lists"}