Nowadays, almost everyone is either using AI tools or thinking about incorporating them into their daily work. At the same time, many professionals are still hesitant, worrying that AI might replace their jobs. While those concerns are understandable, I believe the bigger risk is ignoring these tools altogether. From my experience, AI isn't replacing engineers—it is helping engineers work faster and focus on solving more meaningful problems. Like any other tool, its value depends on how effectively we use it. The more we learn to collaborate with AI, the more productive and efficient we can become. Here are two real examples from my recent work where AI tools helped me solve complex and time-consuming engineering problems significantly faster. AI helped me audit and upgrade my project's tech stack by checking dependency compatibility and flagging version-specific issues in advance. Instead of manually reviewing every package and verifying the latest compatible versions, I was ...
Postman Collection Run - How to Test File Uploading API on CircleCi or Jenkins
- Get link
- X
- Other Apps
From last couple of days, I was doing R&D on how we can test file uploading API on CircleCi or Postman collection Run?
Finally, I found a way to test the File uploading APIs using the Postman Desktop app OR Postman CLI collection run.
I have also tested this solution, even on CircleCi for running the automated testing postman APIs by Postman CLI collection run.
Here is step by step process, how you can test the file uploading API on CircleCi or Postman collection Run?
Local Desktop App settings:
- Open and go to Local Postman app settings -> General
- Set working directly location (default is postman installation directory but can also choose any other directory)
- Place files (to use in file upload APIs during the collection run) in the working directory selected as in the above step and also in the root directory of your project.
- Now go to the API in which you need to upload a file, and select the file from the working directory selected in step 2.
- Save that API and collection.
CircleCi or Jenkins Postman command
- Now update the command to run postman collection in .circleci/config.yml like
postman collection run postman/ci-collection.json --working-dir [project-root-directory]
where project-root-directory can be /var/www/html when using docker.
Now the upload API should run normally for collection run on local Postman App and on CircleCi as well.
In case you still face any issue, please comment below, I will try to help you as soon as possible.
Note: Please keep your Postman App and CLI updated.
- Get link
- X
- Other Apps
Popular posts from this blog
Differences between json and jsonb - JSON data type in PostgreSQL
You may have read differences between PostgreSQL datatypes JSON and JSONB. If not, let see the difference between both theoretically and practically. Although, both json and jsonb are types of PostgreSQL JSON datatypes and accepts almost same format as input values i.e. json. But still there are some difference which one must know to efficiently use or can choose from both json and jsonb. The main different is how they actually store data; the json data type stores input value as it is but jsonb stores value in a decomposed binary format which lead to difference in efficiency . Jsonb is slower as compare to json while saving the input values because of converting json values to binary format before saving. Jsonb fast in processing the data because no re-parsing needed as compare to json datatype which needs processing function to re-parsing on every execution. Few other differences between json and jsonb are: Jsonb supports indexing which is advantage over j...
Laravel Validation - Unique rule with multiple column and condition.
Today I am going to share, How we can use Laravel validation rule `unique`. If you have worked with laravel and familiar with laravel validation, you must know what does 'unique' rule checks. If not let me give here a brief about this. In simple words, It is similar to a unique key constraint applied to a column in the database table. 'Unique' rule check there is no similar value exists in the given database table column, to value matching with the provided input value. The general format of the rule is: unique:table //when input name is similar to column name OR unique:table,column OR unique:Model,attribute Examples: 'email' => 'unique:users' //here users is table name OR 'email' => 'unique:c,email_address' //can give custom column name. OR 'email' => 'unique:User,email' //here User is a model class This is a very simple usage ...
How to Build Nested Tree Structures for Parent-Child using The Laravel Eloquent Relationships
A few days back, working on a Laravel project I had to create an API returning the deeply nested Tree structure for the parent-child relationship of a given object entity - in this case, a Company. Although as an experienced PHP developer, I know how to build Nested Tree Structures for Parent-Child relationships using core PHP and SQL queries. But I was looking to, if Laravel Eloquent provides any efficient inbuilt method to fetch the Parent-child relationship with a deep nested tree structure. This led me to search on ChatGPT for the same. Here I want to give credit to ChatGPT which not only saved my time but also suggested a new way to get the desired result using Laravel Eloquent Relationships. Before I explain the solution for building a Nested Tree Structure, first let's understand it. Understanding Nested Tree Structures: A nested tree structure organizes data in a hierarchical manner, making it easy to represent parent-child relationships. Each node in the tree can have mult...


Comments
Post a Comment