Rust API client for openapi

This is the interface for interacting with the Asana Platform. Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml).

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

Installation

Put the package under your project folder and add the following to Cargo.toml under [dependencies]:

openapi = { path = "./generated" }

Documentation for API Endpoints

All URIs are relative to https://app.asana.com/api/1.0

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- AttachmentsApi | createattachmentfortask | post /tasks/{taskgid}/attachments | Upload an attachment AttachmentsApi | deleteattachment | delete /attachments/{attachmentgid} | Delete an attachment AttachmentsApi | getattachment | get /attachments/{attachmentgid} | Get an attachment AttachmentsApi | getattachmentsfortask | get /tasks/{taskgid}/attachments | Get attachments for a task BatchAPIApi | createbatchrequest | post /batch | Submit parallel requests CustomFieldSettingsApi | getcustomfieldsettingsforportfolio | get /portfolios/{portfoliogid}/customfieldsettings | Get a portfolio's custom fields CustomFieldSettingsApi | getcustomfieldsettingsforproject | get /projects/{projectgid}/customfieldsettings | Get a project's custom fields CustomFieldsApi | createcustomfield | post /customfields | Create a custom field *CustomFieldsApi* | createenumoptionforcustomfield | post /customfields/{customfieldgid}/enumoptions | Create an enum option CustomFieldsApi | deletecustomfield | delete /customfields/{customfieldgid} | Delete a custom field *CustomFieldsApi* | getcustomfield | get /customfields/{customfieldgid} | Get a custom field CustomFieldsApi | getcustomfieldsforworkspace | get /workspaces/{workspacegid}/customfields | Get a workspace's custom fields CustomFieldsApi | insertenumoptionforcustomfield | post /customfields/{customfieldgid}/enumoptions/insert | Reorder a custom field's enum *CustomFieldsApi* | updatecustomfield | put /customfields/{customfieldgid} | Update a custom field CustomFieldsApi | updateenumoption | put /enumoptions/{enumoptiongid} | Update an enum option *EventsApi* | getevents | get /events | Get events on a resource JobsApi | getjob | get /jobs/{jobgid} | Get a job by id OrganizationExportsApi | createorganizationexport | post /organizationexports | Create an organization export request *OrganizationExportsApi* | getorganizationexport | get /organizationexports/{organizationexportgid} | Get details on an org export request PortfolioMembershipsApi | getportfoliomembership | get /portfoliomemberships/{portfoliomembershipgid} | Get a portfolio membership *PortfolioMembershipsApi* | getportfoliomemberships | get /portfoliomemberships | Get multiple portfolio memberships PortfolioMembershipsApi | getportfoliomembershipsforportfolio | get /portfolios/{portfoliogid}/portfoliomemberships | Get memberships from a portfolio PortfoliosApi | addcustomfieldsettingforportfolio | post /portfolios/{portfoliogid}/addCustomFieldSetting | Add a custom field to a portfolio PortfoliosApi | additemforportfolio | post /portfolios/{portfoliogid}/addItem | Add a portfolio item PortfoliosApi | addmembersforportfolio | post /portfolios/{portfoliogid}/addMembers | Add users to a portfolio PortfoliosApi | createportfolio | post /portfolios | Create a portfolio *PortfoliosApi* | deleteportfolio | delete /portfolios/{portfoliogid} | Delete a portfolio *PortfoliosApi* | getitemsforportfolio | get /portfolios/{portfoliogid}/items | Get portfolio items *PortfoliosApi* | getportfolio | get /portfolios/{portfoliogid} | Get a portfolio *PortfoliosApi* | getportfolios | get /portfolios | Get multiple portfolios PortfoliosApi | removecustomfieldsettingforportfolio | post /portfolios/{portfoliogid}/removeCustomFieldSetting | Remove a custom field from a portfolio PortfoliosApi | removeitemforportfolio | post /portfolios/{portfoliogid}/removeItem | Remove a portfolio item PortfoliosApi | removemembersforportfolio | post /portfolios/{portfoliogid}/removeMembers | Remove users from a portfolio PortfoliosApi | updateportfolio | put /portfolios/{portfoliogid} | Update a portfolio ProjectMembershipsApi | getprojectmembership | get /projectmemberships/{projectmembershipgid} | Get a project membership *ProjectMembershipsApi* | getprojectmembershipsforproject | get /projects/{projectgid}/projectmemberships | Get memberships from a project *ProjectStatusesApi* | createprojectstatusforproject | post /projects/{projectgid}/projectstatuses | Create a project status *ProjectStatusesApi* | deleteprojectstatus | delete /projectstatuses/{projectstatusgid} | Delete a project status ProjectStatusesApi | getprojectstatus | get /projectstatuses/{projectstatusgid} | Get a project status *ProjectStatusesApi* | getprojectstatusesforproject | get /projects/{projectgid}/projectstatuses | Get statuses from a project *ProjectsApi* | addcustomfieldsettingforproject | post /projects/{projectgid}/addCustomFieldSetting | Add a custom field to a project *ProjectsApi* | addfollowersforproject | post /projects/{projectgid}/addFollowers | Add followers to a project *ProjectsApi* | addmembersforproject | post /projects/{projectgid}/addMembers | Add users to a project *ProjectsApi* | createproject | post /projects | Create a project ProjectsApi | createprojectforteam | post /teams/{teamgid}/projects | Create a project in a team ProjectsApi | createprojectforworkspace | post /workspaces/{workspacegid}/projects | Create a project in a workspace ProjectsApi | deleteproject | delete /projects/{projectgid} | Delete a project ProjectsApi | duplicateproject | post /projects/{projectgid}/duplicate | Duplicate a project ProjectsApi | getproject | get /projects/{projectgid} | Get a project ProjectsApi | getprojects | get /projects | Get multiple projects *ProjectsApi* | getprojectsfortask | get /tasks/{taskgid}/projects | Get projects a task is in *ProjectsApi* | getprojectsforteam | get /teams/{teamgid}/projects | Get a team's projects *ProjectsApi* | getprojectsforworkspace | get /workspaces/{workspacegid}/projects | Get all projects in a workspace *ProjectsApi* | gettaskcountsforproject | get /projects/{projectgid}/taskcounts | Get task count of a project *ProjectsApi* | removecustomfieldsettingforproject | post /projects/{projectgid}/removeCustomFieldSetting | Remove a custom field from a project *ProjectsApi* | removefollowersforproject | post /projects/{projectgid}/removeFollowers | Remove followers from a project *ProjectsApi* | removemembersforproject | post /projects/{projectgid}/removeMembers | Remove users from a project *ProjectsApi* | updateproject | put /projects/{projectgid} | Update a project *SectionsApi* | addtaskforsection | post /sections/{sectiongid}/addTask | Add task to section *SectionsApi* | createsectionforproject | post /projects/{projectgid}/sections | Create a section in a project *SectionsApi* | deletesection | delete /sections/{sectiongid} | Delete a section *SectionsApi* | getsection | get /sections/{sectiongid} | Get a section *SectionsApi* | getsectionsforproject | get /projects/{projectgid}/sections | Get sections in a project *SectionsApi* | insertsectionforproject | post /projects/{projectgid}/sections/insert | Move or Insert sections *SectionsApi* | updatesection | put /sections/{sectiongid} | Update a section *StoriesApi* | createstoryfortask | post /tasks/{taskgid}/stories | Create a story on a task *StoriesApi* | deletestory | delete /stories/{storygid} | Delete a story *StoriesApi* | getstoriesfortask | get /tasks/{taskgid}/stories | Get stories from a task *StoriesApi* | getstory | get /stories/{storygid} | Get a story *StoriesApi* | updatestory | put /stories/{storygid} | Update a story *TagsApi* | createtag | post /tags | Create a tag TagsApi | createtagforworkspace | post /workspaces/{workspacegid}/tags | Create a tag in a workspace TagsApi | deletetag | delete /tags/{taggid} | Delete a tag TagsApi | gettag | get /tags/{taggid} | Get a tag TagsApi | gettags | get /tags | Get multiple tags *TagsApi* | gettagsfortask | get /tasks/{taskgid}/tags | Get a task's tags *TagsApi* | gettagsforworkspace | get /workspaces/{workspacegid}/tags | Get tags in a workspace *TagsApi* | updatetag | put /tags/{taggid} | Update a tag *TasksApi* | adddependenciesfortask | post /tasks/{taskgid}/addDependencies | Set dependencies for a task *TasksApi* | adddependentsfortask | post /tasks/{taskgid}/addDependents | Set dependents for a task *TasksApi* | addfollowersfortask | post /tasks/{taskgid}/addFollowers | Add followers to a task *TasksApi* | addprojectfortask | post /tasks/{taskgid}/addProject | Add a project to a task *TasksApi* | addtagfortask | post /tasks/{taskgid}/addTag | Add a tag to a task *TasksApi* | createsubtaskfortask | post /tasks/{taskgid}/subtasks | Create a subtask *TasksApi* | createtask | post /tasks | Create a task TasksApi | deletetask | delete /tasks/{taskgid} | Delete a task TasksApi | duplicatetask | post /tasks/{taskgid}/duplicate | Duplicate a task TasksApi | getdependenciesfortask | get /tasks/{taskgid}/dependencies | Get dependencies from a task TasksApi | getdependentsfortask | get /tasks/{taskgid}/dependents | Get dependents from a task TasksApi | getsubtasksfortask | get /tasks/{taskgid}/subtasks | Get subtasks from a task TasksApi | gettask | get /tasks/{taskgid} | Get a task TasksApi | gettasks | get /tasks | Get multiple tasks *TasksApi* | gettasksforproject | get /projects/{projectgid}/tasks | Get tasks from a project *TasksApi* | gettasksforsection | get /sections/{sectiongid}/tasks | Get tasks from a section *TasksApi* | gettasksfortag | get /tags/{taggid}/tasks | Get tasks from a tag *TasksApi* | gettasksforusertasklist | get /usertasklists/{usertasklistgid}/tasks | Get tasks from a user task list *TasksApi* | removedependenciesfortask | post /tasks/{taskgid}/removeDependencies | Unlink dependencies from a task *TasksApi* | removedependentsfortask | post /tasks/{taskgid}/removeDependents | Unlink dependents from a task *TasksApi* | removefollowerfortask | post /tasks/{taskgid}/removeFollowers | Remove followers from a task *TasksApi* | removeprojectfortask | post /tasks/{taskgid}/removeProject | Remove a project from a task *TasksApi* | removetagfortask | post /tasks/{taskgid}/removeTag | Remove a tag from a task *TasksApi* | searchtasksforworkspace | get /workspaces/{workspacegid}/tasks/search | Search tasks in a workspace *TasksApi* | setparentfortask | post /tasks/{taskgid}/setParent | Set the parent of a task *TasksApi* | updatetask | put /tasks/{taskgid} | Update a task *TeamMembershipsApi* | getteammembership | get /teammemberships/{teammembershipgid} | Get a team membership TeamMembershipsApi | getteammemberships | get /teammemberships | Get team memberships *TeamMembershipsApi* | getteammembershipsforteam | get /teams/{teamgid}/teammemberships | Get memberships from a team *TeamMembershipsApi* | getteammembershipsforuser | get /users/{usergid}/teammemberships | Get memberships from a user *TeamsApi* | adduserforteam | post /teams/{teamgid}/addUser | Add a user to a team *TeamsApi* | createteam | post /teams | Create a team TeamsApi | getteam | get /teams/{teamgid} | Get a team TeamsApi | getteamsfororganization | get /organizations/{workspacegid}/teams | Get teams in an organization TeamsApi | getteamsforuser | get /users/{usergid}/teams | Get teams for a user TeamsApi | removeuserforteam | post /teams/{teamgid}/removeUser | Remove a user from a team TypeaheadApi | typeaheadforworkspace | get /workspaces/{workspacegid}/typeahead | Get objects via typeahead *UserTaskListsApi* | getusertasklist | get /usertasklists/{usertasklistgid} | Get a user task list *UserTaskListsApi* | getusertasklistforuser | get /users/{usergid}/usertasklist | Get a user's task list *UsersApi* | getfavoritesforuser | get /users/{usergid}/favorites | Get a user's favorites *UsersApi* | getuser | get /users/{usergid} | Get a user *UsersApi* | getusers | get /users | Get multiple users UsersApi | getusersforteam | get /teams/{teamgid}/users | Get users in a team UsersApi | getusersforworkspace | get /workspaces/{workspacegid}/users | Get users in a workspace or organization WebhooksApi | createwebhook | post /webhooks | Establish a webhook *WebhooksApi* | deletewebhook | delete /webhooks/{webhookgid} | Delete a webhook *WebhooksApi* | getwebhook | get /webhooks/{webhookgid} | Get a webhook *WebhooksApi* | getwebhooks | get /webhooks | Get multiple webhooks WorkspaceMembershipsApi | getworkspacemembership | get /workspacememberships/{workspacemembershipgid} | Get a workspace membership *WorkspaceMembershipsApi* | getworkspacemembershipsforuser | get /users/{usergid}/workspacememberships | Get workspace memberships for a user *WorkspaceMembershipsApi* | getworkspacemembershipsforworkspace | get /workspaces/{workspacegid}/workspacememberships | Get the workspace memberships for a workspace *WorkspacesApi* | adduserforworkspace | post /workspaces/{workspacegid}/addUser | Add a user to a workspace or organization *WorkspacesApi* | getworkspace | get /workspaces/{workspacegid} | Get a workspace *WorkspacesApi* | getworkspaces | get /workspaces | Get multiple workspaces WorkspacesApi | removeuserforworkspace | post /workspaces/{workspacegid}/removeUser | Remove a user from a workspace or organization WorkspacesApi | updateworkspace | put /workspaces/{workspacegid} | Update a workspace

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author