{"id":20128048,"url":"https://github.com/osandadeshan/rest-assured-code-generator","last_synced_at":"2026-04-12T14:48:51.907Z","repository":{"id":259377704,"uuid":"875652908","full_name":"osandadeshan/rest-assured-code-generator","owner":"osandadeshan","description":"A lightweight Next.js application that enables users to generate RestAssured code by providing the required parameters.","archived":false,"fork":false,"pushed_at":"2024-10-24T10:25:02.000Z","size":9985,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-25T00:05:00.818Z","etag":null,"topics":["code-generation","codegen","codegenerator","css","hacktoberfest","html","nextjs","nodejs","rest-api","restassured","typescript"],"latest_commit_sha":null,"homepage":"https://rest-assured-code-generator.vercel.app","language":"TypeScript","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/osandadeshan.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":"2024-10-20T14:48:27.000Z","updated_at":"2024-10-24T10:25:05.000Z","dependencies_parsed_at":"2024-10-25T00:20:18.860Z","dependency_job_id":"46f13038-df7a-4ab1-804f-231029dcfeed","html_url":"https://github.com/osandadeshan/rest-assured-code-generator","commit_stats":null,"previous_names":["osandadeshan/rest-assured-code-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osandadeshan%2Frest-assured-code-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osandadeshan%2Frest-assured-code-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osandadeshan%2Frest-assured-code-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osandadeshan%2Frest-assured-code-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osandadeshan","download_url":"https://codeload.github.com/osandadeshan/rest-assured-code-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241572231,"owners_count":19984239,"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":["code-generation","codegen","codegenerator","css","hacktoberfest","html","nextjs","nodejs","rest-api","restassured","typescript"],"created_at":"2024-11-13T20:25:10.039Z","updated_at":"2025-12-31T01:05:25.099Z","avatar_url":"https://github.com/osandadeshan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REST Assured Code Generator\n\n![REST Assured Code Generator](https://img.shields.io/badge/REST%20Assured-Code%20Generator-blue)\n![GitHub deployments](https://img.shields.io/github/deployments/osandadeshan/rest-assured-code-generator/Production)\n![GitHub last commit](https://img.shields.io/github/last-commit/osandadeshan/rest-assured-code-generator)\n![GitHub commit activity](https://img.shields.io/github/commit-activity/m/osandadeshan/rest-assured-code-generator)\n![GitHub top language](https://img.shields.io/github/languages/top/osandadeshan/rest-assured-code-generator)\n![GitHub contributors](https://img.shields.io/github/contributors/osandadeshan/rest-assured-code-generator)\n![GitHub License](https://img.shields.io/github/license/osandadeshan/rest-assured-code-generator)\n\n## Overview\n\nThe **REST Assured Code Generator** is a simple Next.js application designed to streamline the process of generating REST Assured test code. By inputting the necessary parameters, users can quickly obtain a code snippet that can be used to test APIs. This single-page application focuses on simplicity and efficiency, making it easier for users to create test cases without unnecessary complexity.\n\n![REST Assured Code Generator GIF](rest-assured-code-gen.gif)\n\n## Features\n\n- **Input Fields**:\n  - **Base URL**: Text box for entering the base URL of the API.\n  - **API Endpoint**: Text box for entering the specific API endpoint.\n  - **Query Parameters**: Two text boxes (key and value) with a \"+\" button to add more parameters as needed.\n  - **Path Parameters**: Text box for entering path parameters with a \"+\" button to add additional parameters.\n  - **Headers**: Similar to query parameters, allows for key-value pairs with the option to add more.\n  - **Request Body**: A dropdown to choose between JSON and form-data formats, along with an appropriate text area for input.\n  - **Expected Status Code**: A searchable dropdown listing all possible HTTP status codes.\n\n- **User Interface**: \n  - The left side of the application contains all input fields for user convenience.\n  - The right side displays the generated REST Assured code snippet along with a \"Copy Code\" button.\n\n- **Code Generation**: \n  - On clicking the \"Generate Code\" button, the application compiles all the input data into a well-structured REST Assured test code.\n\n  ![UI](app-ui.png)\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (version 14 or later)\n- npm (version 5.6 or later)\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/osandadeshan/rest-assured-code-generator.git\n   cd rest-assured-code-generator\n   ```\n\n2. Install the dependencies:\n\n  ```bash\n  npm install\n  ```\n\n3. Start the development server:\n\n  ```bash\n  npm run dev\n  ```\n\n4. Open your web browser and navigate to `http://localhost:3000` to view the application.\n\n## Usage\n1. Enter the **Base URL** and **API Endpoint** in the provided text boxes.\n2. Add **Query Parameters** and **Path Parameters** using the \"+\" buttons.\n3. Enter any necessary **Headers**.\n4. Select the appropriate **Request Body Type (JSON or form-data)** and provide the body content if required.\n5. Enter the **Expected Status Code**.\n6. Click the **Generate Code** button to create the REST Assured test code.\n7. Use the **Copy Code** button to easily copy the generated code to your clipboard for further use.\n\n## Technologies Used\n- Next.js\n- React\n- TypeScript\n- CSS (for styling)\n\n## Deployment\n\nThe application is deployed on [Vercel](https://vercel.com/). You can try it out [here](https://rest-assured-code-generator.vercel.app/).\n\n## License\nThis project is licensed under the MIT License. You are free to use, modify, and distribute this software under the terms of the license.\n\n\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/License_icon-mit-2.svg/2000px-License_icon-mit-2.svg.png\" alt=\"MIT License\" width=\"100\" height=\"100\"/\u003e [MIT License](https://opensource.org/licenses/MIT)\n\n## Contributing\nContributions are welcome! Please feel free to submit a pull request or open an issue for any enhancements or bug fixes.\n\n## Acknowledgements\n- Inspired by the need for efficient API testing and automation.\n- Thanks to the open-source community for their valuable tools and resources.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosandadeshan%2Frest-assured-code-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosandadeshan%2Frest-assured-code-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosandadeshan%2Frest-assured-code-generator/lists"}