bend-api v0.1.0
bend-api
BendApi - JavaScript client for bend-api No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:
- API version: v1
- Package version: 0.1.0
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install bend-api --save
Local development
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
into the directory containing package.json
(and this README). Let's call this JAVASCRIPT_CLIENT_DIR
. Then run:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
Finally, switch to the directory you want to use your bend-api from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
You should now be able to require('bend-api')
in javascript files from the directory you ran the last
command above from.
git
If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually
use this library):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Webpack Configuration
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Getting Started
Please follow the installation instruction and execute the following JS code:
var BendApi = require('bend-api');
var defaultClient = BendApi.ApiClient.instance;
// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'
// Configure API key authorization: TokenAuthentication
var TokenAuthentication = defaultClient.authentications['TokenAuthentication'];
TokenAuthentication.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TokenAuthentication.apiKeyPrefix['Authorization'] = "Token"
var api = new BendApi.AnnouncementsApi()
var id = 56; // {Number} A unique integer value identifying this announcement.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.announcementsDismiss(id, callback);
Documentation for API Endpoints
All URIs are relative to https://localhost/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
BendApi.AnnouncementsApi | announcementsDismiss | GET /announcements/{id}/dismiss/ | |
BendApi.AnnouncementsApi | announcementsList | GET /announcements/ | |
BendApi.AttachmentApi | attachmentCreate | POST /attachment/ | |
BendApi.AttachmentApi | attachmentDelete | DELETE /attachment/{id}/ | |
BendApi.AttachmentApi | attachmentList | GET /attachment/ | |
BendApi.AttachmentApi | attachmentPartialUpdate | PATCH /attachment/{id}/ | |
BendApi.AttachmentApi | attachmentRead | GET /attachment/{id}/ | |
BendApi.AttachmentApi | attachmentUpdate | PUT /attachment/{id}/ | |
BendApi.DashboardApi | dashboardAddWidget | POST /dashboard/{id}/add_widget/ | |
BendApi.DashboardApi | dashboardClone | POST /dashboard/{id}/clone/ | |
BendApi.DashboardApi | dashboardCreate | POST /dashboard/ | |
BendApi.DashboardApi | dashboardDelete | DELETE /dashboard/{id}/ | |
BendApi.DashboardApi | dashboardList | GET /dashboard/ | |
BendApi.DashboardApi | dashboardPartialUpdate | PATCH /dashboard/{id}/ | |
BendApi.DashboardApi | dashboardRead | GET /dashboard/{id}/ | |
BendApi.DashboardApi | dashboardUpdate | PUT /dashboard/{id}/ | |
BendApi.DeployApi | deployPostDeploy | GET /deploy/post_deploy/ | |
BendApi.DeployApi | deployPreDeploy | GET /deploy/pre_deploy/ | |
BendApi.FailuresApi | failuresExportCsvCreate | POST /failures/export/csv/ | Export failures to CSV file. |
BendApi.FailuresApi | failuresExportCsvProgress | GET /failures/export/csv/{id}/progress/ | |
BendApi.FailuresApi | failuresExportCsvRead | GET /failures/export/csv/{id}/ | Export failures to CSV file. |
BendApi.FailuresApi | failuresExportJiraCreate | POST /failures/export/jira/ | Export failures to JIRA. |
BendApi.FailuresApi | failuresExportJiraProgress | GET /failures/export/jira/{id}/progress/ | |
BendApi.FailuresApi | failuresExportJiraRead | GET /failures/export/jira/{id}/ | Export failures to JIRA. |
BendApi.JiraApi | jiraCallback | GET /jira/callback/ | |
BendApi.JiraApi | jiraGetAuthUrl | GET /jira/get_auth_url/ | |
BendApi.JiraApi | jiraGetJiraIssueTypes | GET /jira/get_jira_issue_types/ | |
BendApi.JiraApi | jiraGetJiraProjects | GET /jira/get_jira_projects/ | |
BendApi.JiraApi | jiraGetTests | GET /jira/get_tests/ | |
BendApi.JiraApi | jiraIssueCreate | POST /jira/issue/ | |
BendApi.JiraApi | jiraIssueDelete | DELETE /jira/issue/{id}/ | |
BendApi.JiraApi | jiraIssueList | GET /jira/issue/ | |
BendApi.JiraApi | jiraIssueRead | GET /jira/issue/{id}/ | |
BendApi.JiraApi | jiraIssueSync | GET /jira/issue/{id}/sync/ | |
BendApi.JiraApi | jiraSuggestionsCommon | GET /jira/suggestions/common/ | |
BendApi.JiraApi | jiraSuggestionsLabels | GET /jira/suggestions/labels/ | |
BendApi.JiraApi | jiraSyncByKey | GET /jira/sync_by_key/ | |
BendApi.KnownFailureApi | knownFailureCreate | POST /known_failure/ | |
BendApi.KnownFailureApi | knownFailureDelete | DELETE /known_failure/{id}/ | |
BendApi.KnownFailureApi | knownFailureExport | GET /known_failure/_export/ | |
BendApi.KnownFailureApi | knownFailureImport | POST /known_failure/_import/ | |
BendApi.KnownFailureApi | knownFailureList | GET /known_failure/ | |
BendApi.KnownFailureApi | knownFailurePartialUpdate | PATCH /known_failure/{id}/ | |
BendApi.KnownFailureApi | knownFailureRead | GET /known_failure/{id}/ | |
BendApi.KnownFailureApi | knownFailureUpdate | PUT /known_failure/{id}/ | |
BendApi.MilestoneApi | milestoneCreate | POST /milestone/ | |
BendApi.MilestoneApi | milestoneDelete | DELETE /milestone/{id}/ | |
BendApi.MilestoneApi | milestoneList | GET /milestone/ | |
BendApi.MilestoneApi | milestonePartialUpdate | PATCH /milestone/{id}/ | |
BendApi.MilestoneApi | milestoneRead | GET /milestone/{id}/ | |
BendApi.MilestoneApi | milestoneUpdate | PUT /milestone/{id}/ | |
BendApi.NotifyApi | notifyTestEmail | GET /notify/test_email/ | |
BendApi.NotifyApi | notifyTestEventRunFinish | GET /notify/test_event/run_finish/ | |
BendApi.NotifyApi | notifyTestEventRunStart | GET /notify/test_event/run_start/ | |
BendApi.ProjectApi | projectList | GET /project/ | |
BendApi.ProjectApi | projectRead | GET /project/{id}/ | |
BendApi.ProjectApi | projectRolesAndPermissions | GET /project/{id}/roles_and_permissions/ | |
BendApi.ProjectPreferencesApi | projectPreferencesList | GET /project_preferences/ | |
BendApi.ProjectPreferencesApi | projectPreferencesRead | GET /project_preferences/{id}/ | |
BendApi.QueryApi | queryAddToFavorite | GET /query/{id}/add_to_favorite/ | |
BendApi.QueryApi | queryConvertToSql | GET /query/{id}/convert_to_sql/ | |
BendApi.QueryApi | queryCreate | POST /query/ | |
BendApi.QueryApi | queryDelete | DELETE /query/{id}/ | |
BendApi.QueryApi | queryList | GET /query/ | |
BendApi.QueryApi | queryMyFavorite | GET /query/my_favorite/ | |
BendApi.QueryApi | queryPartialUpdate | PATCH /query/{id}/ | |
BendApi.QueryApi | queryRead | GET /query/{id}/ | |
BendApi.QueryApi | queryRemoveFromFavorite | GET /query/{id}/remove_from_favorite/ | |
BendApi.QueryApi | queryUpdate | PUT /query/{id}/ | |
BendApi.RegexApi | regexCreate | POST /regex/ | |
BendApi.RegexApi | regexDelete | DELETE /regex/{id}/ | |
BendApi.RegexApi | regexList | GET /regex/ | |
BendApi.RegexApi | regexPartialUpdate | PATCH /regex/{id}/ | |
BendApi.RegexApi | regexRead | GET /regex/{id}/ | |
BendApi.RegexApi | regexUpdate | PUT /regex/{id}/ | |
BendApi.ReportApi | reportEnumAttributeRead | GET /report/enum_attribute/{id}/ | |
BendApi.ReportApi | reportItemCreate | POST /report/item/ | |
BendApi.ReportApi | reportItemDelete | DELETE /report/item/{id}/ | |
BendApi.ReportApi | reportItemGenerate | GET /report/item/{id}/generate/ | |
BendApi.ReportApi | reportItemGenerateResult | POST /report/item/generate_result/ | |
BendApi.ReportApi | reportItemList | GET /report/item/ | |
BendApi.ReportApi | reportItemPartialUpdate | PATCH /report/item/{id}/ | |
BendApi.ReportApi | reportItemRead | GET /report/item/{id}/ | |
BendApi.ReportApi | reportItemUpdate | PUT /report/item/{id}/ | |
BendApi.ReportApi | reportTypeFilters | GET /report/type/{id}/filters/ | |
BendApi.ReportApi | reportTypeList | GET /report/type/ | |
BendApi.ReportApi | reportTypeRead | GET /report/type/{id}/ | |
BendApi.RerunApi | rerunStart | GET /rerun/start/ | |
BendApi.ReviewApi | reviewAsyncBulkCreate | PATCH /review/async_bulk_create/ | |
BendApi.ReviewApi | reviewAsyncBulkUpdate | PATCH /review/async_bulk_update/ | |
BendApi.ReviewApi | reviewBulkCreate | POST /review/bulk_create/ | |
BendApi.ReviewApi | reviewBulkUpdate | PATCH /review/bulk_update/ | |
BendApi.ReviewApi | reviewCreate | POST /review/ | |
BendApi.ReviewApi | reviewDelete | DELETE /review/{id}/ | |
BendApi.ReviewApi | reviewHistory | GET /review/{id}/history/ | |
BendApi.ReviewApi | reviewList | GET /review/ | |
BendApi.ReviewApi | reviewManualStatusesList | GET /review/manual_statuses/ | |
BendApi.ReviewApi | reviewManualStatusesPartialUpdate | PATCH /review/manual_statuses/{id}/ | |
BendApi.ReviewApi | reviewManualStatusesRead | GET /review/manual_statuses/{id}/ | |
BendApi.ReviewApi | reviewManualStatusesUpdate | PUT /review/manual_statuses/{id}/ | |
BendApi.ReviewApi | reviewPartialUpdate | PATCH /review/{id}/ | |
BendApi.ReviewApi | reviewRead | GET /review/{id}/ | |
BendApi.ReviewApi | reviewResolutions | GET /review/resolutions/ | |
BendApi.ReviewApi | reviewStatuses | GET /review/statuses/ | |
BendApi.ReviewApi | reviewUpdate | PUT /review/{id}/ | |
BendApi.RunApi | runBulkCreate | POST /run/bulk_create/ | |
BendApi.RunApi | runCreate | POST /run/ | |
BendApi.RunApi | runDelete | DELETE /run/{id}/ | |
BendApi.RunApi | runDslSchema | GET /run/dsl_schema/ | |
BendApi.RunApi | runDslSuggestion | GET /run/dsl_suggestion/ | |
BendApi.RunApi | runList | GET /run/ | |
BendApi.RunApi | runNewIssues | GET /run/{id}/new_issues/ | |
BendApi.RunApi | runPartialUpdate | PATCH /run/{id}/ | |
BendApi.RunApi | runRead | GET /run/{id}/ | |
BendApi.RunApi | runUpdate | PUT /run/{id}/ | |
BendApi.StepApi | stepBulkCreate | POST /step/bulk_create/ | |
BendApi.StepApi | stepCreate | POST /step/ | |
BendApi.StepApi | stepDelete | DELETE /step/{id}/ | |
BendApi.StepApi | stepDslSchema | GET /step/dsl_schema/ | |
BendApi.StepApi | stepLinkIssue | POST /step/{id}/link_issue/ | |
BendApi.StepApi | stepList | GET /step/ | |
BendApi.StepApi | stepPartialUpdate | PATCH /step/{id}/ | |
BendApi.StepApi | stepRead | GET /step/{id}/ | |
BendApi.StepApi | stepSimilarSteps | POST /step/{id}/similar_steps/ | |
BendApi.StepApi | stepUpdate | PUT /step/{id}/ | |
BendApi.TaskApi | taskForget | GET /task/forget/ | Forget the task result |
BendApi.TaskApi | taskInfo | GET /task/info/ | Task return value. |
BendApi.TaskApi | taskResult | GET /task/result/ | Retrieve a task result |
BendApi.TaskApi | taskState | GET /task/state/ | Retrieve a task status |
BendApi.TaskApi | taskTerminate | GET /task/terminate/ | Terminate the task |
BendApi.TestApi | testBulkCreate | POST /test/bulk_create/ | |
BendApi.TestApi | testCreate | POST /test/ | |
BendApi.TestApi | testDelete | DELETE /test/{id}/ | |
BendApi.TestApi | testDslSchema | GET /test/dsl_schema/ | |
BendApi.TestApi | testDslSuggestion | GET /test/dsl_suggestion/ | |
BendApi.TestApi | testHistory | GET /test/{id}/history/ | |
BendApi.TestApi | testIsKnownFailure | GET /test/{id}/is_known_failure/ | |
BendApi.TestApi | testList | GET /test/ | |
BendApi.TestApi | testListPost | POST /test/list_post/ | |
BendApi.TestApi | testPartialUpdate | PATCH /test/{id}/ | |
BendApi.TestApi | testRead | GET /test/{id}/ | |
BendApi.TestApi | testTmtExportHistory | GET /test/{id}/tmt_export_history/ | |
BendApi.TestApi | testUpdate | PUT /test/{id}/ | |
BendApi.TestApi | testUpdateStatus | POST /test/{id}/update_status/ | |
BendApi.TestApi | testUpdateStatusHistory | GET /test/{id}/update_status_history/ | |
BendApi.TmtApi | tmtBuilds | GET /tmt/builds/ | |
BendApi.TmtApi | tmtExecuteTcByDsl | POST /tmt/execute_tc_by_dsl/ | |
BendApi.TmtApi | tmtExecuteTcByTestList | POST /tmt/execute_tc_by_test_list/ | |
BendApi.TmtApi | tmtExportHistoryDslSuggestion | GET /tmt/export_history/dsl_suggestion/ | |
BendApi.TmtApi | tmtExportHistoryList | GET /tmt/export_history/ | |
BendApi.TmtApi | tmtExportHistoryRead | GET /tmt/export_history/{id}/ | |
BendApi.TmtApi | tmtGetCasesForImport | GET /tmt/get_cases_for_import/ | |
BendApi.TmtApi | tmtImportCases | POST /tmt/import_cases/ | |
BendApi.TmtApi | tmtManualCasesList | GET /tmt/manual_cases/ | |
BendApi.TmtApi | tmtManualCasesRead | GET /tmt/manual_cases/{id}/ | |
BendApi.TmtApi | tmtSyncCreate | POST /tmt/sync/ | |
BendApi.TmtApi | tmtSyncDslSuggestion | GET /tmt/sync/dsl_suggestion/ | |
BendApi.TmtApi | tmtTestPlans | GET /tmt/test_plans/ | |
BendApi.TreeViewApi | treeViewAsyncGroupByStepError | POST /tree_view/async_group_by_step_error/ | |
BendApi.TreeViewApi | treeViewGetRunsByDslForTest | GET /tree_view/get_runs_by_dsl_for_test/ | |
BendApi.TreeViewApi | treeViewGetTestByRunIdAndDslTest | GET /tree_view/get_test_by_run_id_and_dsl_test/ | |
BendApi.TreeViewApi | treeViewGetUniqueManualTestCase | GET /tree_view/get_unique_manual_test_case/ | |
BendApi.TreeViewApi | treeViewGroupByStepError | POST /tree_view/group_by_step_error/ | |
BendApi.TreeViewApi | treeViewGroupTests | GET /tree_view/group_tests/ | |
BendApi.TreeViewApi | treeViewSendReportByQuery | POST /tree_view/send_report_by_query/ | |
BendApi.TreeViewApi | treeViewSingleGroupByStepError | POST /tree_view/single_group_by_step_error/ | |
BendApi.UploadBackupApi | uploadBackupCreate | POST /upload_backup/ | |
BendApi.UserApi | userGetCurrent | GET /user/get_current/ | |
BendApi.UserApi | userList | GET /user/ | |
BendApi.UserApi | userProjectPermission | GET /user/{id}/project_permission/ | |
BendApi.UserApi | userRead | GET /user/{id}/ | |
BendApi.UserApi | userSettingPartialUpdate | PATCH /user/setting/{user_id}/ | |
BendApi.UserApi | userSettingRead | GET /user/setting/{user_id}/ | |
BendApi.UserApi | userSettingUpdate | PUT /user/setting/{user_id}/ | |
BendApi.UserTokenApi | userTokenList | GET /user_token/ | |
BendApi.WidgetApi | widgetCreate | POST /widget/ | |
BendApi.WidgetApi | widgetDelete | DELETE /widget/{id}/ | |
BendApi.WidgetApi | widgetList | GET /widget/ | |
BendApi.WidgetApi | widgetPartialUpdate | PATCH /widget/{id}/ | |
BendApi.WidgetApi | widgetRead | GET /widget/{id}/ | |
BendApi.WidgetApi | widgetUpdate | PUT /widget/{id}/ |
Documentation for Models
- BendApi.AddWidgetViaDashboard
- BendApi.Announcement
- BendApi.AsyncStepErrorGroup
- BendApi.Attachment
- BendApi.Attribute
- BendApi.Build
- BendApi.BuildJiraIssue
- BendApi.BuildReportItem
- BendApi.BulkCreate
- BendApi.BulkCreateAttachment
- BendApi.BulkCreateStep
- BendApi.BulkCreateTest
- BendApi.BulkUpdate
- BendApi.BulkUpdateReviewTest
- BendApi.CsvExportRequest
- BendApi.DSLQuery
- BendApi.Dashboard
- BendApi.Disposition
- BendApi.EnumValue
- BendApi.ExportedTestCase
- BendApi.Group
- BendApi.Host
- BendApi.InlineResponse200
- BendApi.InlineResponse2001
- BendApi.InlineResponse20010
- BendApi.InlineResponse20011
- BendApi.InlineResponse20012
- BendApi.InlineResponse20013
- BendApi.InlineResponse20014
- BendApi.InlineResponse20015
- BendApi.InlineResponse20016
- BendApi.InlineResponse20017
- BendApi.InlineResponse20018
- BendApi.InlineResponse20019
- BendApi.InlineResponse2002
- BendApi.InlineResponse2003
- BendApi.InlineResponse2004
- BendApi.InlineResponse2005
- BendApi.InlineResponse2006
- BendApi.InlineResponse2007
- BendApi.InlineResponse2008
- BendApi.InlineResponse2009
- BendApi.IssueRegex
- BendApi.JiraExportRequest
- BendApi.JiraIssue
- BendApi.JiraIssueTypesResponse
- BendApi.JiraProjectResponse
- BendApi.LinkJiraIssue
- BendApi.ManualTestStatuses
- BendApi.Milestone
- BendApi.NewIssueTest
- BendApi.Permission
- BendApi.PermissionSchema
- BendApi.Project
- BendApi.ProjectPreferences
- BendApi.ProjectRole
- BendApi.Regex
- BendApi.ReportItem
- BendApi.ReportType
- BendApi.ResponseTcExportedData
- BendApi.ResponseTcExportedItem
- BendApi.Review
- BendApi.ReviewHistory
- BendApi.ReviewPreferences
- BendApi.ReviewTemplate
- BendApi.ReviewTest
- BendApi.Role
- BendApi.Run
- BendApi.RunModel
- BendApi.SendReport
- BendApi.SendReportItem
- BendApi.SerializerImportCaseView
- BendApi.SimilarStepsParams
- BendApi.StatusChange
- BendApi.Step
- BendApi.StepErrorGroup
- BendApi.StepErrorSingleGroup
- BendApi.TMTExecuteTcByDsl
- BendApi.TMTExecuteTcByTestList
- BendApi.TMTIdentifier
- BendApi.TaskProgress
- BendApi.TaskState
- BendApi.Test
- BendApi.TestDslString
- BendApi.TestHistory
- BendApi.TestIds
- BendApi.TestLinkSnapshotRequest
- BendApi.TestModel
- BendApi.TestPlan
- BendApi.UploadBackup
- BendApi.User
- BendApi.UserRun
- BendApi.UserSetting
- BendApi.Widget
Documentation for Authorization
BasicAuthentication
- Type: HTTP basic authentication
TokenAuthentication
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
5 years ago