{"id":19537506,"url":"https://github.com/phrdavis/api_aspdotnet","last_synced_at":"2026-01-03T15:04:48.244Z","repository":{"id":249199438,"uuid":"830750902","full_name":"Phrdavis/API_ASPDOTNET","owner":"Phrdavis","description":"API Web with ASP,NET","archived":false,"fork":false,"pushed_at":"2024-07-18T23:31:02.000Z","size":1194,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T06:34:14.059Z","etag":null,"topics":["api","asp-net-core","crud","csharp","dotnet","microsoft","microsoft-learn","visual-studio-code"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Phrdavis.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-18T23:16:09.000Z","updated_at":"2024-07-26T13:51:32.000Z","dependencies_parsed_at":"2024-07-19T07:41:59.203Z","dependency_job_id":"460dff42-eeaa-48eb-a475-30f6ecc622e5","html_url":"https://github.com/Phrdavis/API_ASPDOTNET","commit_stats":null,"previous_names":["phrdavis/api_aspdotnet"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phrdavis%2FAPI_ASPDOTNET","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phrdavis%2FAPI_ASPDOTNET/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phrdavis%2FAPI_ASPDOTNET/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phrdavis%2FAPI_ASPDOTNET/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Phrdavis","download_url":"https://codeload.github.com/Phrdavis/API_ASPDOTNET/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926071,"owners_count":20369910,"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":["api","asp-net-core","crud","csharp","dotnet","microsoft","microsoft-learn","visual-studio-code"],"created_at":"2024-11-11T02:28:16.103Z","updated_at":"2026-01-03T15:04:48.204Z","avatar_url":"https://github.com/Phrdavis.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API WEB\n\n## Description\n\nThis project is an exciting API Web application built using ASP.NET controllers and CRUD operations. It provides a seamless experience for managing and interacting with pizza data.\n\n## Technologies Used\n\n- C# \n- ASP.NET Core\n- Visual Studio Code\n\n## Installation\n\nTo install the project, follow these steps:\n\n1. Clone the repository to your local machine.\n2. Open the project in your preferred IDE.\n3. Restore the NuGet packages by running the command `dotnet restore` in the terminal.\n4. Build the project by running the command `dotnet build` in the terminal.\n5. Start the API by running the command `dotnet run` in the terminal.\n\nOnce the API is running, you can interact with it using the provided API documentation.\n\n## API Documentation\n\n### Endpoints\n\n#### Get All Pizzas\n\n- **URL:** `/api/v1/pizza`\n- **Method:** GET\n- **Description:** Retrieves all pizzas from the database.\n- **Response:** JSON array of pizza objects.\n\n#### Get Pizza by ID\n\n- **URL:** `/api/v1/pizza/{id}`\n- **Method:** GET\n- **Description:** Retrieves a specific pizza by its ID.\n- **Parameters:**\n    - `id` (path parameter): The ID of the pizza.\n- **Response:** JSON object representing the pizza.\n\n#### Create Pizza\n\n- **URL:** `/api/v1/pizza`\n- **Method:** POST\n- **Description:** Creates a new pizza.\n- **Request Body:** JSON object representing the pizza to be created.\n- **Response:** JSON object representing the created pizza.\n\n#### Update Pizza\n\n- **URL:** `/api/v1/pizza/{id}`\n- **Method:** PUT\n- **Description:** Updates an existing pizza.\n- **Parameters:**\n    - `id` (path parameter): The ID of the pizza to be updated.\n- **Request Body:** JSON object representing the updated pizza.\n- **Response:** JSON object representing the updated pizza.\n\n#### Delete Pizza\n\n- **URL:** `/api/v1/pizza/{id}`\n- **Method:** DELETE\n- **Description:** Deletes a specific pizza by its ID.\n- **Parameters:**\n    - `id` (path parameter): The ID of the pizza to be deleted.\n- **Response:** No content.\n\n### Error Handling\n\n- **Status Code 404:** If a pizza with the specified ID is not found.\n- **Status Code 400:** If the request body is invalid or missing required fields.\n\n### Authentication and Authorization\n\n- This API does not require authentication or authorization.\n\n### Sample Requests and Responses\n\n#### Get All Pizzas\n\n**Request:** GET `/api/v1/pizza`\n\n**Response:**\n\n```json\n[\n    {\n        \"id\": 1,\n        \"Name\": \"Margherita\",\n        \"IsGlutenFree\": true\n    },\n    {\n        \"id\": 2,\n        \"Name\": \"Pepperoni\",\n        \"IsGlutenFree\": false\n    }\n]\n```\n\n#### Get Pizza by ID\n\n**Request:** GET `/api/v1/pizza/1`\n\n**Response:**\n\n```json\n{\n    \"id\": 1,\n    \"Name\": \"Margherita\",\n    \"IsGlutenFree\": true\n}\n```\n\n#### Create Pizza\n\n**Request:** POST `/api/v1/pizza`\n\n**Request Body:**\n\n```json\n{\n    \"Name\": \"Hawaiian\",\n    \"IsGlutenFree\": true\n}\n```\n\n**Response:**\n\n```json\n{\n    \"id\": 3,\n    \"Name\": \"Hawaiian\",\n    \"IsGlutenFree\": true\n}\n```\n\n#### Update Pizza\n\n**Request:** PUT `/api/v1/pizza/3`\n\n**Request Body:**\n\n```json\n{\n    \"Name\": \"Hawaiian Deluxe\",\n    \"IsGlutenFree\": true\n}\n```\n\n**Response:**\n\n```json\n{\n    \"id\": 3,\n    \"Name\": \"Hawaiian Deluxe\",\n    \"IsGlutenFree\": false\n}\n```\n\n#### Delete Pizza\n\n**Request:** DELETE `/api/v1/pizza/3`\n\n**Response:** No content.\n\n\n## Contributing\n\nI appreciate all contributions! This project is intended for study purposes only, using the [Microsoft Learn](https://learn.microsoft.com/pt-br/training/) platform.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrdavis%2Fapi_aspdotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphrdavis%2Fapi_aspdotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrdavis%2Fapi_aspdotnet/lists"}