Skip to content

Manage Form Type and Approval API Part 2 #87

@dedenbangkit

Description

@dedenbangkit

Page Design: http://localhost:3000/questionnaires/county

  • Create approval level seeder for all the admin (which has access to level 1), note that the form type for this seeder should only be a country form type for the next point: GET /form/approval
  • GET /form/approval-level/. The list of forms for all the forms by checking the access of the admin by the token.
    Response:
    [{
        form_id: int,
        level_id: [int],
    }]
  • GET /form/approval-level/{administration_id}/. Same as above, but this endpoint is for super admin only, can skip the token access for administration and filter them manually by administration_id parameter.
    Related issue: Manage Form Type and Approval API #67

Page Design: #66

  • GET /form/approvers/
    Query: administration_id,form_id
    Response
    [{
      user: {
        id: int,
        first_name:,
        last_name:,
        email:,
      },
      administration: {
        id:int,
        name:str
      },
    }]

Note that the list is the children of selected administration_id

  • GET /list/users add filter descendants=true/false, default true

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions