Documentation navigationNavigare documentație
LESSON 4 OF 14LECȚIA 4 DIN 14
Copy and literalCopiere și valoare literală
Produce exact output with copy, optional copy, and literal values.Produce outputul exact cu copiere, copiere opțională și valori literale.
- ContextContext
- isolated-loopback-course
- Required roleRol necesar
- engineer
- HeadersHeadere
- Content-Type · Origin · X-CSRF-Token · Idempotency-Key
- FixturesFixture-uri
- person-transformer · person-valid
Accepted operatorsOperatori acceptați
$copy$copy_optional$literal$concat$coalesce01 · RUN LOCALLYRULEAZĂ LOCAL
Copy the chapter commandCopiază comanda capitolului
Create the transformer and test its first operators.Creează transformerul și testează primii operatori.
./scripts/docula-course chapter copy-and-literal --workspace "$DOCULA_COURSE_WORKSPACE"02 · CHECK THE CONTRACTVERIFICĂ CONTRACTUL
Expected released responseRăspuns publicat așteptat
{
"operation_id": "testCanonicalTransformer",
"kind": "response",
"status": 200,
"media_type": "application/json"
}03 · CHECKPOINT
Required assertionAserțiune obligatorie
{
"assertion": "actual.output == expected.output",
"protocol_sha256": "d7eb6bd4210e35b3dc9bed3bf3bb1fa66212b0e7c1dd79dd44aba871912313b6"
}