UNPKG

@apistudio/apim-cli

Version:

CLI for API Management Products

35 lines (34 loc) 978 B
kind: test apiVersion: api.webmethods.io/beta metadata: name: Test for atm-pet-store namespace: default version: 1.0.0 tags: [] spec: api: $endpoint: // Replace with a valid endpoint environment: $ref: default:environment_default_atm-pet-store:1.0.0 request: - method: post resource: /pet var: payload payload: raw: json: >- {"category":{"id":0,"name":"string"},"id":0,"name":"doggie","photoUrls":["string"],"status":"available","tags":[{"id":0,"name":"string"}]} headers: - key: Accept value: application/json - key: Content-Type value: application/json assertions: $ref: default:assertion_atm-pet-store:1.0.0 endpoint: ${protocol}${domain}/${basePath} - method: get resource: /${petId} var: payload assertions: $ref: default:assertion_1_atm-pet-store:1.0.0 endpoint: ${protocol}${domain}/${basePath}/pet