Skip to content

[EPIC] [API] Fields Call #875

Open
Open
@zyronix

Description

@zyronix

To make the Web UI as dynamic as possible a fields call should be implemented. The Fields call can be used to determine what kind of type a field is. For example: a text field, binary, choices, lengths. But also have descriptions/tooltips attached to fields.

  • Research possible solution
  • Build PoC
  • Implement all fields

Possible solutions:

    get /fields
    -> {
        'hashlist':
            'name': {'type': 'str(128)', 'description': ''}
        'agent':
           'agenttype': {'type': 'int', 'choices': {
                 
                    CPU: {value: 1, description: cpu}}
                    GPU: {value: 1, description: cpu}
                
        }
        notification-triggers
        {
            'actions':
                {
                    'deleteHashlist':
                        {
                            type: object[Hashlist[url=/apiv2/hashlist/]] #voorbeeldjes bijzoeken
                            type: int
                            object: Hashlist
                            value: optional
                        }
                }
        }
        task
        {
            name
            agentBinaryType: {
                display_type: str
                choice: [array[agentBinaryVersion]]
            }
        }
    }

    # inter dependacies between query parameters
    * ./meta/task/create
    post: OPTIONS ./task/
    {
        {name: type str}
        {agentbinary{
            id=1,name=hashcat:
                {
                    v1.2.3: id=1
                    v1.2.4: id=2
                }
            generic:
                {
                    v123: id =4
                    v542: id = 5
                }
        }}
    }
    patch: OPTIONS ./task/:id
    {
        name
        meta: {create {'name', agentbinary,}}
    }

Required helper functions:

  • Set user password

Metadata

Metadata

Assignees

Labels

epicTracker for larger featuresserverHashtopolis API/Server related

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions