title: Edit Employee {{request.args.id}} requests: edit: {%if request.method=='PATCH'%} uri: http://0.0.0.0:8000/api/employee/{{request.args.id}} method: patch data: id: {{request.json.get('id')|int}} name: {{request.json.get('name')}} division: {{request.json.get('division')}} salary: {{request.json.get('salary')|float}} {%endif%} employee: {%if request.args.id and request.method=='GET'%} uri: http://0.0.0.0:8000/api/employee/{{request.args.id}} method: get{%endif%} form: fields: id: label: Employee ID type: number disabled: true name: label: Employee Name type: text division: label: Division type: text salary: label: Salary type: number --- {%if edit%} Created Employee: {{request.json}} - {{request.method}} {{edit}} {%elif employee%}{%set employee = employee.json()%}
{%else%} {%endif%}