Skip to content

Commit f5e1ca3

Browse files
authored
Fix typo in publish API example (#6155)
Motivation: To create a package release, one should do a `PUT /{scope}/{name}/{version}` HTTP request. That's what it's said everywhere in the spec except in the example. Modification: Fix example request to be consistent with the spec.
1 parent 1ae9d22 commit f5e1ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/Registry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ A client SHOULD set the `Accept` header with the value
835835
`application/vnd.swift.registry.v1+json`.
836836

837837
```http
838-
PUT /mona/LinkedList?version=1.1.1 HTTP/1.1
838+
PUT /mona/LinkedList/1.1.1 HTTP/1.1
839839
Host: packages.example.com
840840
Accept: application/vnd.swift.registry.v1+json
841841
Content-Type: multipart/form-data;boundary="boundary"

0 commit comments

Comments
 (0)