ever-co / ever-teams

Ever® Teams™ - Open Work and Project Management Platform - https://ever.team
https://ever.team
GNU Affero General Public License v3.0
264 stars 46 forks source link

Settings | Personal - add Positions v.2 #878

Open KostyaEver opened 1 year ago

KostyaEver commented 1 year ago

Update Personal user Settings

User should have a dropdown menu 'Position' that can vary

Screenshot at May 19 11-39-25
Anishali2 commented 4 months ago

@rahul-rocket Do we have the API for this?

evereq commented 4 months ago

@Anishali2 you can check it yourself, e.g. in Gauzy UI you can see we do have "Position" dropdown and using Chrome Dev Tool you can see what request / response we have to API etc

image

Anishali2 commented 4 months ago

Ok Sir I'll check

Anishali2 commented 4 months ago

@evereq @rahul-rocket API Details

method: GET URL: https://api.gauzy.co/api/organization-positions params: data: {"findInput":{"tenantId":"b545069e-48c8-44a2-bcb4-5699fd2013be","organizationId":"6c247b8d-5853-404a-b774-57d01620d9cf"}} headers: Authorization: Breaer ${token}

response:

{
    "items": [
        {
            "deletedAt": null,
            "id": "d55387c3-f50c-48d3-9c04-0aad2b2cf50c",
            "createdAt": "2023-10-10T10:03:48.517Z",
            "updatedAt": "2023-10-10T10:03:48.517Z",
            "isActive": true,
            "isArchived": false,
            "tenantId": "b545069e-48c8-44a2-bcb4-5699fd2013be",
            "organizationId": "6c247b8d-5853-404a-b774-57d01620d9cf",
            "name": "Software Engineer"
        }
    ],
    "total": 1
}