Save a contract
Send the contract’s source as the plain-text body ofPOST /contracts:
201 Created:
- If the source has a syntax error, the contract isn’t saved and the server responds with
400and aLexErrororParseError. - If that path, name and version already exists, the server responds with
409and aContractExistserror. Save it under a new version instead.
Saving only checks that the script parses. Problems that appear while running, such as a type mismatch or an unknown resource, are reported when the contract is invoked.
List contracts
GET /contracts returns every saved contract version with its parameters:
Delete a contract
Delete every version of a contract:@<version>:
204 No Content. If no matching contract exists, the server responds with 404 and an UnknownContract error.