Skip to content

[WIP] Fix empty URL issue in Post data request#1

Closed
Copilot wants to merge 1 commit into
masterfrom
copilot/fix-post-data-request-url
Closed

[WIP] Fix empty URL issue in Post data request#1
Copilot wants to merge 1 commit into
masterfrom
copilot/fix-post-data-request-url

Conversation

Copilot AI commented Jan 8, 2026

Copy link
Copy Markdown

Fix Postman Collection for API Testing

Plan:

  • Analyze repository structure and understand the API endpoint
  • Review the GET and POST endpoint requirements
  • Create a Postman collection file with both GET and POST requests
  • Ensure POST request has the correct URL (https://concrete-mix-design-ipt-method.vercel.app/api/v1/dosage)
  • Add proper request body with all required fields to POST request
  • Add test cases for both requests
  • Validate the collection file format
  • Update documentation if needed

Context:

The issue indicates that a Postman collection run is failing because:

  1. The POST request has an empty URL in the collection
  2. The POST request body is missing required fields (experimentalPoints and target)

The API expects:

  • GET /api/v1/dosage - Returns API info and example data
  • POST /api/v1/dosage - Accepts concrete mix design data and returns calculations

Need to create a proper Postman collection with both requests configured correctly.

Original prompt

Verifique este LOG, precisamos ajustar este detalhe na API.

Post Data Request Sent
Your Post data request was sent successfully and all 10 tests passed! 🎉 The comprehensive validation confirmed:

Response time under 2000ms ✓
Correct Content-Type header ✓
All required fields present ✓
Proper data types ✓
Valid example data structure ✓
⚠️ Collection Run Completed with Issue
The collection run finished, but there's an issue with the
Post data
request:

Results:

Total Requests: 2 (1 passed, 1 failed)
Total Tests: 1 passed
Execution Time: 496ms
Issue: The "Post data" request has an empty URL in the collection
It looks like the POST request URL might not be saved properly in the collection. When you sent it individually, it worked fine, but during the collection run, the URL was empty.

Let me fix this for you: Would you like me to:

Update the Post data request URL to match the GET request (https://concrete-mix-design-ipt-method.vercel.app/api/v1/dosage)

Request Results:
✅ Get data - Passed (200 OK, 976ms)

1/1 tests passed
❌ Post data - Failed (400 Bad Request, 246ms)

0/1 tests passed
Issue: The API returned a validation error
Why the POST Request Failed:
The API is rejecting the request body because it's missing required fields. Your current body is:

But the API expects a complete concrete mix design payload with:

experimentalPoints (array)
target (object with fck, sd, aggressivenessClass, elementType, slump, mortarContent)
Next steps to fix this:

Update the POST request body with valid data based on the example from the GET response


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel

vercel Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
concrete-mix-design-ipt-method Ready Ready Preview, Comment Jan 8, 2026 4:23pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants