← Back
Editing: 20-address.feature
Feature: In order to choose an address As an agent I want to list available addresses Scenario: Get address list Given the "Content-Type" request header contains "application/json" And the "X-Api-Solution" request header contains "Clean Manager" And i am logged as agent When I request "/api/adresse/" using HTTP GET Then the response code is 200 And the response body contains JSON: """ [ { "id": "@variableType(integer)", "voie": "@variableType(string)", "numero": "@variableType(string)", "codePostal": "@variableType(string)", "ville": "@variableType(string)", "ascenseurIsActive": "@variableType(boolean)", "items": [ { "id": "@variableType(integer)", "nom": "@variableType(string)", "zone": { "id": "@variableType(integer)", "nom": "@variableType(string)" } } ] } ] """ Scenario: Get single address Given the "Content-Type" request header contains "application/json" And the "X-Api-Solution" request header contains "Clean Manager" And i am logged as agent When I request "/api/adresse/1" using HTTP GET Then the response code is 200 And the response body contains JSON: """ { "id": "@variableType(integer)", "voie": "@variableType(string)", "numero": "@variableType(string)", "codePostal": "@variableType(string)", "ville": "@variableType(string)", "ascenseurIsActive": "@variableType(boolean)", "items": [ { "id": "@variableType(integer)", "nom": "@variableType(string)", "zone": { "id": "@variableType(integer)", "nom": "@variableType(string)" } } ] } """
Save File
Cancel