Skip to content

Commit 256566f

Browse files
authored
Merge pull request #17 from SignPath/FormdataParamNaming
Improve form-data parameter naming and UDP syntax
2 parents 30c6982 + 930ab5d commit 256566f

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

docs/build-system-integration.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,21 @@ You need to provide these values for every single API request.
5656

5757
| Field name | Description
5858
|-----------------------------|------------------
59-
| `ProjectSlug` | The project for which you want to create the signing request
60-
| `SigningPolicySlug` | Signing policy for which you want to create the signing request
61-
| `ArtifactConfigurationSlug` | Optional: artifact configuration to use for the signing request (default if not specified)
62-
| `Artifact` | Artifact file
63-
| `Description` | Optional: description for your signing request (e.g. version number)
59+
| `projectSlug` | The project for which you want to create the signing request
60+
| `signingPolicySlug` | Signing policy for which you want to create the signing request
61+
| `artifactConfigurationSlug` | Optional: artifact configuration to use for the signing request (default if not specified)
62+
| `artifact` | Artifact file
63+
| `description` | Optional: description for your signing request (e.g. version number)
6464

6565
**Example:**
6666

6767
~~~ bash
6868
curl -H "Authorization: Bearer $API_TOKEN" \
69-
-F "ProjectSlug=$PROJECT" \
70-
-F "SigningPolicySlug=test-signing" \
71-
-F "ArtifactConfigurationSlug=v2.4" \
72-
-F "Artifact=@$PATH_TO_ARTIFACT" \
73-
-F "Description=$DESCRIPTION" \
69+
-F "projectSlug=$PROJECT" \
70+
-F "signingPolicySlug=test-signing" \
71+
-F "artifactConfigurationSlug=v2.4" \
72+
-F "artifact=@$PATH_TO_ARTIFACT" \
73+
-F "description=$DESCRIPTION" \
7474
https://app.signpath.io/API/v1/$ORGANIZATION_ID/SigningRequests
7575
~~~
7676

@@ -80,9 +80,9 @@ curl -H "Authorization: Bearer $API_TOKEN" \
8080

8181
{% include editions.md feature="artifact_configuration.user_defined_parameters" %}
8282

83-
Values for [user-defined parameters](/artifact-configuration/syntax#parameters) in the artifact configuration can be provided by adding another multipart/form-data field prefixed with `Parameters.`
83+
Values for [user-defined parameters](/artifact-configuration/syntax#parameters) in the artifact configuration can be provided by adding another multipart/form-data field prefixed with `parameters.`
8484

85-
Example: `-F "Parameters[productVersion]=1.2.0"`
85+
Example: `-F "parameters.productVersion=1.2.0"`
8686

8787
### Get signing request data
8888

@@ -173,17 +173,17 @@ See [Resubmit an existing signing request](/signing-code#resubmit) for more info
173173
| URL | `/SigningRequests/Resubmit`
174174
| Method | `POST`
175175
| Encoding | `multipart/form-data`
176-
| `OriginalSigningRequestId` | The ID of the signing request which you want to resubmit
177-
| `SigningPolicySlug` | Signing policy for which you want to create the signing request
178-
| `Description` | Optional: description for your signing request (e.g. version number)
176+
| `originalSigningRequestId` | The ID of the signing request which you want to resubmit
177+
| `signingPolicySlug` | Signing policy for which you want to create the signing request
178+
| `description` | Optional: description for your signing request (e.g. version number)
179179

180180
**Example:**
181181

182182
~~~ bash
183183
curl -H "Authorization: Bearer $API_TOKEN" \
184-
-F "OriginalSigningRequestId=$ORIGINAL_SIGNING_REQUEST_ID" \
185-
-F "SigningPolicySlug=release-signing" \
186-
-F "Description=$DESCRIPTION" \
184+
-F "originalSigningRequestId=$ORIGINAL_SIGNING_REQUEST_ID" \
185+
-F "signingPolicySlug=release-signing" \
186+
-F "description=$DESCRIPTION" \
187187
https://app.signpath.io/API/v1/$ORGANIZATION_ID/SigningRequests/Resubmit
188188
~~~
189189

0 commit comments

Comments
 (0)