1.0.13 • Published 2 years ago

lytesnap_backend_api v1.0.13

Weekly downloads
-
License
EULA
Repository
-
Last release
2 years ago

lytesnap_backend_api

LytesnapBackendApi - JavaScript client for lytesnap_backend_api This document details all the API endpoints that are consumed exclusively by lytesnap frontend. This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.13
  • Build package: org.openapitools.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 lytesnap_backend_api --save

Finally, you need to build the module:

npm run build
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

To use the link you just defined in your project, switch to the directory you want to use your lytesnap_backend_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

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):

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 LytesnapBackendApi = require('lytesnap_backend_api');

var defaultClient = LytesnapBackendApi.ApiClient.instance;
// Configure Bearer (JWT) access token for authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"

var api = new LytesnapBackendApi.DefaultApi()
var locationId = "locationId_example"; // {String} 
api.deleteLocationLocationId(locationId).then(function() {
  console.log('API called successfully.');
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to http://localhost:5000/api/v1

ClassMethodHTTP requestDescription
LytesnapBackendApi.DefaultApideleteLocationLocationIdDELETE /location/{locationId}Delete location information by locationId
LytesnapBackendApi.DefaultApideleteUserCoachAvailabilityAvailabilityIdDELETE /coach/availability/{availabilityId}
LytesnapBackendApi.DefaultApideleteUserCoachProfileSettingsPayoutPaymentMethodIdDELETE /coach/profile/settings/payout/{paymentMethodId}Coach delete payment method Id
LytesnapBackendApi.DefaultApideleteUserFilterFilterNameDELETE /student/filter/{filterId}Delete user filter by ID
LytesnapBackendApi.DefaultApideleteUserStudentProfileSettingsPaymentMethodsStudentIdPaymentMethodIdDELETE /student/profile/payment-methods/{studentId}/{paymentMethodId}Delete payment method by payment ID
LytesnapBackendApi.DefaultApigetCoachGET /coach/profileGet coach's own profile
LytesnapBackendApi.DefaultApigetCoachSignupPOST /coach/signupSignup student with basic information
LytesnapBackendApi.DefaultApigetLocationGET /locationGet all saved locations by coach
LytesnapBackendApi.DefaultApigetLocationLocationIdGET /location/{locationId}Get location information by locationId
LytesnapBackendApi.DefaultApigetUserAdminGET /admin/bookingsGet Bookings
LytesnapBackendApi.DefaultApigetUserAdminBookingLocationPercentageGET /admin/dashboard-location-percentageYour GET endpoint
LytesnapBackendApi.DefaultApigetUserAdminCertificateGET /admin/certificateAdmin get certificates
LytesnapBackendApi.DefaultApigetUserAdminCertificateCoachIdGET /admin/certificate/{coachId}Admin get certificate from coachId
LytesnapBackendApi.DefaultApigetUserAdminComplaintUserIdGET /admin/complaint/{userId}Get complaint from user
LytesnapBackendApi.DefaultApigetUserAdminDashboardFilterGET /admin/dashboard-filterThis get the dashboard filter names
LytesnapBackendApi.DefaultApigetUserAdminDashboardLocationStateGET /admin/dashboard-locationYour GET endpoint
LytesnapBackendApi.DefaultApigetUserAdminProfileGET /admin/profileAdmin get profile
LytesnapBackendApi.DefaultApigetUserAdminProfileCheckGET /admin/profile-checkAdmin get Profile-Check
LytesnapBackendApi.DefaultApigetUserAdminUserComplaintsGET /admin/complaintAdmin gets user complaints
LytesnapBackendApi.DefaultApigetUserAdminUserFeedbackGET /admin/user-feedbackAdmin get user feedback
LytesnapBackendApi.DefaultApigetUserAdminUserFeedbackFeedbackIdGET /admin/user-feedback/{featureId}Admin get feedback for specific feature
LytesnapBackendApi.DefaultApigetUserAdminUsersManagementGET /admin/users-managementYour GET endpoint
LytesnapBackendApi.DefaultApigetUserCoachAvailabilityGET /coach/availability/listCoach gets own availability
LytesnapBackendApi.DefaultApigetUserCoachAvailabilityInfoGET /coach/availability-optionsGet Availability Info
LytesnapBackendApi.DefaultApigetUserCoachInsightsGET /coach/insights/analyticsGet coach analytics insight
LytesnapBackendApi.DefaultApigetUserCoachNotificationsGET /coach/notificationsGet Coach Notifications
LytesnapBackendApi.DefaultApigetUserCoachProfileCoachIdGET /coach/profile/{coachId}Get coach profile by Id
LytesnapBackendApi.DefaultApigetUserCoachProfileSettingsNotificationsGET /coach/profile/settings/notificationsGet coach notifications settings
LytesnapBackendApi.DefaultApigetUserCoachProfileSettingsPayoutGET /coach/profile/settings/payoutGet Coach Payout Methods
LytesnapBackendApi.DefaultApigetUserCoachReviewGET /coach/reviewCoach Get Reviews
LytesnapBackendApi.DefaultApigetUserCoachSessionGET /coach/session-plansGet coach session info
LytesnapBackendApi.DefaultApigetUserFilterGET /student/filterGet user saved filters
LytesnapBackendApi.DefaultApigetUserFilterFilterNameGET /student/filter/{filterId}Get user filter by ID
LytesnapBackendApi.DefaultApigetUserLessonsLessonIdGET /lessons/{lessonId}Get a lesson
LytesnapBackendApi.DefaultApigetUserStudentNotificationFilterGET /student/settings/notification-filter/{studentId}Get student notification filter by studentId
LytesnapBackendApi.DefaultApigetUserStudentProfileSettingsBasicInfoStudentIdGET /student/profile/basic-info/{studentId}Get student basic information
LytesnapBackendApi.DefaultApigetUserStudentProfileSettingsNotificationSettingsStudentIdGET /student/profile/notification-settings/{studentId}get student profile notification settings by ID
LytesnapBackendApi.DefaultApigetUserStudentProfileSettingsPaymentMethodsStudentIdGET /student/profile/payment-methods/{studentId}Get student payment methods
LytesnapBackendApi.DefaultApigetUserStudentProfileSettingsStudentIdGET /student/profile/{studentId}Get student profile by student ID
LytesnapBackendApi.DefaultApigetUsersLessonsGET /lessonsGet user lessons
LytesnapBackendApi.DefaultApipatchLocationLocationIdPATCH /location/{locationId}Edit location information by locationId
LytesnapBackendApi.DefaultApipatchUserAdminCertificateCoachIdPATCH /admin/certificate/{coachId}Admin update certificate status
LytesnapBackendApi.DefaultApipatchUserAdminProfilePATCH /admin/profileAdmin update profile
LytesnapBackendApi.DefaultApipatchUserAdminProfileCheckCoachIdPATCH /admin/profile-onboarding/{coachId}
LytesnapBackendApi.DefaultApipatchUserCoachAvailabilityPATCH /coach/availability/{availabilityId}
LytesnapBackendApi.DefaultApipatchUserCoachNotificationsReadPATCH /coach/notifications/readSet list of notifications as read
LytesnapBackendApi.DefaultApipatchUserCoachProfileSettingsPATCH /coach/profile/settings/privacyUpdate coach privacy settings
LytesnapBackendApi.DefaultApipatchUserCoachProfileSettingsNotificationsPATCH /coach/profile/settings/notificationsUpdate coach profile notification settings
LytesnapBackendApi.DefaultApipostAuthEmailVerificationPOST /auth/emailVerificationSend email verification email to user
LytesnapBackendApi.DefaultApipostAuthPasswordResetPOST /auth/passwordResetSend password reset email to user
LytesnapBackendApi.DefaultApipostCoachProfilePOST /coach/profile
LytesnapBackendApi.DefaultApipostLocationPOST /locationAdd a location
LytesnapBackendApi.DefaultApipostStudentSignupPOST /student/signupSignup student with basic information
LytesnapBackendApi.DefaultApipostUserAdminCertificateCoachIdPOST /admin/certificate/{coachId}Admin set certificate status
LytesnapBackendApi.DefaultApipostUserAdminDashboardFilterPOST /admin/dashboard-filterSave admin dashboard filter
LytesnapBackendApi.DefaultApipostUserAdminProfileCheckCoachIdPOST /admin/profile-onboarding/{coachId}Admin set coach status
LytesnapBackendApi.DefaultApipostUserAdminSendWarningEmailPOST /admin/send-warning-emailAdmin send warning email
LytesnapBackendApi.DefaultApipostUserCoachAvailabilityPOST /coach/availability/list
LytesnapBackendApi.DefaultApipostUserCoachAvailabilityInfoPOST /coach/availability-optionsSet Coach Availability Options
LytesnapBackendApi.DefaultApipostUserCoachProfileSettingsPayoutPOST /coach/profile/settings/payoutAdd Payment Method
LytesnapBackendApi.DefaultApipostUserCoachSessionPOST /coach/session-plans
LytesnapBackendApi.DefaultApipostUserFilterPOST /student/filterSave a user filter
LytesnapBackendApi.DefaultApipostUserLessonLessonIdCancelRequestPOST /lesson/{lessonId}/cancel-requestSubmit a lesson cancel request
LytesnapBackendApi.DefaultApipostUserLessonsPOST /lessonsBook a new lesson
LytesnapBackendApi.DefaultApipostUserLessonsLessonIdProblemReportPOST /lessons/{lessonId}/problem-reportReport a problem with a lesson
LytesnapBackendApi.DefaultApipostUserStudentNotificationFilterPOST /student/settings/notification-filtercreate student notification filter with studentId
LytesnapBackendApi.DefaultApipostUserStudentProfileSettingsProfileCreatePOST /student/profilecreate student profile
LytesnapBackendApi.DefaultApiputUserAdminBanUserPUT /admin/ban-userAdmin ban user
LytesnapBackendApi.DefaultApiputUserAdminUnbanUserPUT /admin/unban-userUnban user
LytesnapBackendApi.DefaultApiputUserCoachAvailabilityOptionsPUT /coach/availability-optionsUpdate Availability Options
LytesnapBackendApi.DefaultApiputUserCoachProfilePUT /coach/profileUpdate coach profile attributes
LytesnapBackendApi.DefaultApiputUserCoachProfileSettingsDisablePUT /coach/profile/settings/disableDisable Coach Account
LytesnapBackendApi.DefaultApiputUserCoachProfileSettingsEnablePUT /coach/profile/settings/enableEnable Coach Account
LytesnapBackendApi.DefaultApiputUserCoachProfileSettingsNotificationsPUT /coach/profile/settings/notificationsOverwrite coach notification settings
LytesnapBackendApi.DefaultApiputUserCoachProfileSettingsPayoutPaymentMethodIdPUT /coach/profile/settings/payout/{paymentMethodId}Coach set default payment method
LytesnapBackendApi.DefaultApiputUserCoachSessionPUT /coach/session-plans
LytesnapBackendApi.DefaultApiputUserStudentNotificationFilterStudentIdPUT /student/settings/notification-filter/{studentId}update student notification filter by studentId
LytesnapBackendApi.DefaultApiputUserStudentProfileSettingsBasicInfoPUT /student/profile/basic-info/{studentId}Edit student basic information
LytesnapBackendApi.DefaultApiputUserStudentProfileSettingsDisablePUT /student/profile/settings/disable
LytesnapBackendApi.DefaultApiputUserStudentProfileSettingsEnablePUT /student/profile/settings/enable
LytesnapBackendApi.DefaultApiputUserStudentProfileSettingsNotificationSettingsPUT /student/profile/notification-settings/{studentId}
LytesnapBackendApi.DefaultApiputUserStudentProfileSettingsPaymentPUT /student/profile/payment-methods/{studentId}Create new payment method
LytesnapBackendApi.DefaultApiputUserStudentProfileSettingsPaymentMethodsStudentIdPaymentMethodIdPUT /student/profile/payment-methods/{studentId}/{paymentMethodId}Set student payment method to default by payment ID

Documentation for Models

Documentation for Authorization

bearerAuth

  • Type: Bearer authentication (JWT)
1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago