← Back
Editing: 30-user.feature
Feature: In order to check my account information As an agent I want to request API Scenario: Get authenticated user information 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/user/me/" using HTTP GET Then the response code is 200 And the response body contains JSON: """ { "id": "@variableType(integer)", "username": "@variableType(string)", "email": "@variableType(string)", "enabled": "@variableType(boolean)", "roles": "@variableType(array)", "nom": "@variableType(string)", "prenom": "@variableType(string)", "agency": { "id": "@variableType(integer)", "nom": "@variableType(string)", "email": "@variableType(string)", "logo": "@variableType(string)" }, "client": { "id": "@variableType(integer)", "nom": "@variableType(string)", "email": "@variableType(string)", "logo": "@variableType(string)" } } """ Scenario: Get objective from connected agent 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/user/objectif" using HTTP GET Then the response code is 200 And the response body contains JSON: """ { "controle_a_effectuer": "@variableType(integer)", "objectif": "@variableType(integer)", "endDate": "@variableType(string)" } """ Scenario: Get reminders from connected agent 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/remind" using HTTP GET Then the response code is 200 And the response body contains JSON: """ [] """
Save File
Cancel