Skip to content

Instantly share code, notes, and snippets.

@elliotlarson
Last active January 20, 2026 23:17
Show Gist options
  • Select an option

  • Save elliotlarson/e1324f664e319e50e895601eb30cf913 to your computer and use it in GitHub Desktop.

Select an option

Save elliotlarson/e1324f664e319e50e895601eb30cf913 to your computer and use it in GitHub Desktop.
API V4 Test: US project with zip code - Regression test, should return 201
{
"_comment": "Test 3: US project with zip code - Regression test - Expected: 201 Created",
"_note": "This test verifies US projects still work correctly. Replace USER_EMAIL_HERE and panel.id with valid values.",
"project": {
"name": "Test US Project - Regression Test",
"street": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US",
"asce": "7-16",
"riskCategory": "II",
"railPlatform": "xr",
"panelFinish": "black",
"endClamp": "efo",
"termsOfServiceAcceptedAt": "2024-01-15T10:30:00Z",
"discount": 0.0,
"user": {
"email": "USER_EMAIL_HERE"
},
"panel": {
"id": "PANEL_ID_HERE"
},
"projectSite": {
"lat": 37.7749,
"lng": -122.4194
},
"environmental": {
"snowLoad": 30,
"windSpeed": 115,
"windExposure": "B",
"siteElevation": 1000,
"sDs": 0.282,
"seismicDesignCategory": "C"
},
"detail": {
"roofMaterial": "cs",
"railType": "XR10",
"roofMaterialFamily": "cs",
"roofAttachment": "ff2",
"attachmentHardware": "t-bolt",
"staggeredAttachments": false,
"conduitMounts": "qm_bug_cm",
"modulesExposed": false,
"modulesEdge": false,
"specificGravity": 0.42,
"qmConduitMountPenetrationFlashingForCompShingle": true,
"roofShape": "hip",
"railCutting": true,
"availableLengths": [168, 204]
},
"roofPlanes": [
{
"height": 15,
"rafterSpacing": 16,
"roofSlope": 22,
"roofSections": [
{
"portrait": false,
"layout": {
"rows": 3,
"columns": 8,
"design": "111111111111111111111111"
}
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment