lytesnap_backend_api v1.0.13
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
Class | Method | HTTP request | Description |
---|---|---|---|
LytesnapBackendApi.DefaultApi | deleteLocationLocationId | DELETE /location/{locationId} | Delete location information by locationId |
LytesnapBackendApi.DefaultApi | deleteUserCoachAvailabilityAvailabilityId | DELETE /coach/availability/{availabilityId} | |
LytesnapBackendApi.DefaultApi | deleteUserCoachProfileSettingsPayoutPaymentMethodId | DELETE /coach/profile/settings/payout/{paymentMethodId} | Coach delete payment method Id |
LytesnapBackendApi.DefaultApi | deleteUserFilterFilterName | DELETE /student/filter/{filterId} | Delete user filter by ID |
LytesnapBackendApi.DefaultApi | deleteUserStudentProfileSettingsPaymentMethodsStudentIdPaymentMethodId | DELETE /student/profile/payment-methods/{studentId}/{paymentMethodId} | Delete payment method by payment ID |
LytesnapBackendApi.DefaultApi | getCoach | GET /coach/profile | Get coach's own profile |
LytesnapBackendApi.DefaultApi | getCoachSignup | POST /coach/signup | Signup student with basic information |
LytesnapBackendApi.DefaultApi | getLocation | GET /location | Get all saved locations by coach |
LytesnapBackendApi.DefaultApi | getLocationLocationId | GET /location/{locationId} | Get location information by locationId |
LytesnapBackendApi.DefaultApi | getUserAdmin | GET /admin/bookings | Get Bookings |
LytesnapBackendApi.DefaultApi | getUserAdminBookingLocationPercentage | GET /admin/dashboard-location-percentage | Your GET endpoint |
LytesnapBackendApi.DefaultApi | getUserAdminCertificate | GET /admin/certificate | Admin get certificates |
LytesnapBackendApi.DefaultApi | getUserAdminCertificateCoachId | GET /admin/certificate/{coachId} | Admin get certificate from coachId |
LytesnapBackendApi.DefaultApi | getUserAdminComplaintUserId | GET /admin/complaint/{userId} | Get complaint from user |
LytesnapBackendApi.DefaultApi | getUserAdminDashboardFilter | GET /admin/dashboard-filter | This get the dashboard filter names |
LytesnapBackendApi.DefaultApi | getUserAdminDashboardLocationState | GET /admin/dashboard-location | Your GET endpoint |
LytesnapBackendApi.DefaultApi | getUserAdminProfile | GET /admin/profile | Admin get profile |
LytesnapBackendApi.DefaultApi | getUserAdminProfileCheck | GET /admin/profile-check | Admin get Profile-Check |
LytesnapBackendApi.DefaultApi | getUserAdminUserComplaints | GET /admin/complaint | Admin gets user complaints |
LytesnapBackendApi.DefaultApi | getUserAdminUserFeedback | GET /admin/user-feedback | Admin get user feedback |
LytesnapBackendApi.DefaultApi | getUserAdminUserFeedbackFeedbackId | GET /admin/user-feedback/{featureId} | Admin get feedback for specific feature |
LytesnapBackendApi.DefaultApi | getUserAdminUsersManagement | GET /admin/users-management | Your GET endpoint |
LytesnapBackendApi.DefaultApi | getUserCoachAvailability | GET /coach/availability/list | Coach gets own availability |
LytesnapBackendApi.DefaultApi | getUserCoachAvailabilityInfo | GET /coach/availability-options | Get Availability Info |
LytesnapBackendApi.DefaultApi | getUserCoachInsights | GET /coach/insights/analytics | Get coach analytics insight |
LytesnapBackendApi.DefaultApi | getUserCoachNotifications | GET /coach/notifications | Get Coach Notifications |
LytesnapBackendApi.DefaultApi | getUserCoachProfileCoachId | GET /coach/profile/{coachId} | Get coach profile by Id |
LytesnapBackendApi.DefaultApi | getUserCoachProfileSettingsNotifications | GET /coach/profile/settings/notifications | Get coach notifications settings |
LytesnapBackendApi.DefaultApi | getUserCoachProfileSettingsPayout | GET /coach/profile/settings/payout | Get Coach Payout Methods |
LytesnapBackendApi.DefaultApi | getUserCoachReview | GET /coach/review | Coach Get Reviews |
LytesnapBackendApi.DefaultApi | getUserCoachSession | GET /coach/session-plans | Get coach session info |
LytesnapBackendApi.DefaultApi | getUserFilter | GET /student/filter | Get user saved filters |
LytesnapBackendApi.DefaultApi | getUserFilterFilterName | GET /student/filter/{filterId} | Get user filter by ID |
LytesnapBackendApi.DefaultApi | getUserLessonsLessonId | GET /lessons/{lessonId} | Get a lesson |
LytesnapBackendApi.DefaultApi | getUserStudentNotificationFilter | GET /student/settings/notification-filter/{studentId} | Get student notification filter by studentId |
LytesnapBackendApi.DefaultApi | getUserStudentProfileSettingsBasicInfoStudentId | GET /student/profile/basic-info/{studentId} | Get student basic information |
LytesnapBackendApi.DefaultApi | getUserStudentProfileSettingsNotificationSettingsStudentId | GET /student/profile/notification-settings/{studentId} | get student profile notification settings by ID |
LytesnapBackendApi.DefaultApi | getUserStudentProfileSettingsPaymentMethodsStudentId | GET /student/profile/payment-methods/{studentId} | Get student payment methods |
LytesnapBackendApi.DefaultApi | getUserStudentProfileSettingsStudentId | GET /student/profile/{studentId} | Get student profile by student ID |
LytesnapBackendApi.DefaultApi | getUsersLessons | GET /lessons | Get user lessons |
LytesnapBackendApi.DefaultApi | patchLocationLocationId | PATCH /location/{locationId} | Edit location information by locationId |
LytesnapBackendApi.DefaultApi | patchUserAdminCertificateCoachId | PATCH /admin/certificate/{coachId} | Admin update certificate status |
LytesnapBackendApi.DefaultApi | patchUserAdminProfile | PATCH /admin/profile | Admin update profile |
LytesnapBackendApi.DefaultApi | patchUserAdminProfileCheckCoachId | PATCH /admin/profile-onboarding/{coachId} | |
LytesnapBackendApi.DefaultApi | patchUserCoachAvailability | PATCH /coach/availability/{availabilityId} | |
LytesnapBackendApi.DefaultApi | patchUserCoachNotificationsRead | PATCH /coach/notifications/read | Set list of notifications as read |
LytesnapBackendApi.DefaultApi | patchUserCoachProfileSettings | PATCH /coach/profile/settings/privacy | Update coach privacy settings |
LytesnapBackendApi.DefaultApi | patchUserCoachProfileSettingsNotifications | PATCH /coach/profile/settings/notifications | Update coach profile notification settings |
LytesnapBackendApi.DefaultApi | postAuthEmailVerification | POST /auth/emailVerification | Send email verification email to user |
LytesnapBackendApi.DefaultApi | postAuthPasswordReset | POST /auth/passwordReset | Send password reset email to user |
LytesnapBackendApi.DefaultApi | postCoachProfile | POST /coach/profile | |
LytesnapBackendApi.DefaultApi | postLocation | POST /location | Add a location |
LytesnapBackendApi.DefaultApi | postStudentSignup | POST /student/signup | Signup student with basic information |
LytesnapBackendApi.DefaultApi | postUserAdminCertificateCoachId | POST /admin/certificate/{coachId} | Admin set certificate status |
LytesnapBackendApi.DefaultApi | postUserAdminDashboardFilter | POST /admin/dashboard-filter | Save admin dashboard filter |
LytesnapBackendApi.DefaultApi | postUserAdminProfileCheckCoachId | POST /admin/profile-onboarding/{coachId} | Admin set coach status |
LytesnapBackendApi.DefaultApi | postUserAdminSendWarningEmail | POST /admin/send-warning-email | Admin send warning email |
LytesnapBackendApi.DefaultApi | postUserCoachAvailability | POST /coach/availability/list | |
LytesnapBackendApi.DefaultApi | postUserCoachAvailabilityInfo | POST /coach/availability-options | Set Coach Availability Options |
LytesnapBackendApi.DefaultApi | postUserCoachProfileSettingsPayout | POST /coach/profile/settings/payout | Add Payment Method |
LytesnapBackendApi.DefaultApi | postUserCoachSession | POST /coach/session-plans | |
LytesnapBackendApi.DefaultApi | postUserFilter | POST /student/filter | Save a user filter |
LytesnapBackendApi.DefaultApi | postUserLessonLessonIdCancelRequest | POST /lesson/{lessonId}/cancel-request | Submit a lesson cancel request |
LytesnapBackendApi.DefaultApi | postUserLessons | POST /lessons | Book a new lesson |
LytesnapBackendApi.DefaultApi | postUserLessonsLessonIdProblemReport | POST /lessons/{lessonId}/problem-report | Report a problem with a lesson |
LytesnapBackendApi.DefaultApi | postUserStudentNotificationFilter | POST /student/settings/notification-filter | create student notification filter with studentId |
LytesnapBackendApi.DefaultApi | postUserStudentProfileSettingsProfileCreate | POST /student/profile | create student profile |
LytesnapBackendApi.DefaultApi | putUserAdminBanUser | PUT /admin/ban-user | Admin ban user |
LytesnapBackendApi.DefaultApi | putUserAdminUnbanUser | PUT /admin/unban-user | Unban user |
LytesnapBackendApi.DefaultApi | putUserCoachAvailabilityOptions | PUT /coach/availability-options | Update Availability Options |
LytesnapBackendApi.DefaultApi | putUserCoachProfile | PUT /coach/profile | Update coach profile attributes |
LytesnapBackendApi.DefaultApi | putUserCoachProfileSettingsDisable | PUT /coach/profile/settings/disable | Disable Coach Account |
LytesnapBackendApi.DefaultApi | putUserCoachProfileSettingsEnable | PUT /coach/profile/settings/enable | Enable Coach Account |
LytesnapBackendApi.DefaultApi | putUserCoachProfileSettingsNotifications | PUT /coach/profile/settings/notifications | Overwrite coach notification settings |
LytesnapBackendApi.DefaultApi | putUserCoachProfileSettingsPayoutPaymentMethodId | PUT /coach/profile/settings/payout/{paymentMethodId} | Coach set default payment method |
LytesnapBackendApi.DefaultApi | putUserCoachSession | PUT /coach/session-plans | |
LytesnapBackendApi.DefaultApi | putUserStudentNotificationFilterStudentId | PUT /student/settings/notification-filter/{studentId} | update student notification filter by studentId |
LytesnapBackendApi.DefaultApi | putUserStudentProfileSettingsBasicInfo | PUT /student/profile/basic-info/{studentId} | Edit student basic information |
LytesnapBackendApi.DefaultApi | putUserStudentProfileSettingsDisable | PUT /student/profile/settings/disable | |
LytesnapBackendApi.DefaultApi | putUserStudentProfileSettingsEnable | PUT /student/profile/settings/enable | |
LytesnapBackendApi.DefaultApi | putUserStudentProfileSettingsNotificationSettings | PUT /student/profile/notification-settings/{studentId} | |
LytesnapBackendApi.DefaultApi | putUserStudentProfileSettingsPayment | PUT /student/profile/payment-methods/{studentId} | Create new payment method |
LytesnapBackendApi.DefaultApi | putUserStudentProfileSettingsPaymentMethodsStudentIdPaymentMethodId | PUT /student/profile/payment-methods/{studentId}/{paymentMethodId} | Set student payment method to default by payment ID |
Documentation for Models
- LytesnapBackendApi.CoachAvailability
- LytesnapBackendApi.CoachAvailabilityLocation
- LytesnapBackendApi.CoachAvailabilityPut
- LytesnapBackendApi.CoachNotification
- LytesnapBackendApi.CoachNotificationAdditionalInfo
- LytesnapBackendApi.CoachNotificationAdditionalInfoLessonInfo
- LytesnapBackendApi.CoachPaymentMethod
- LytesnapBackendApi.CoachProfile
- LytesnapBackendApi.CoachProfileAboutMe
- LytesnapBackendApi.CoachProfileCertificates
- LytesnapBackendApi.CoachProfileCredentialsAndExperience
- LytesnapBackendApi.CoachProfileFaq
- LytesnapBackendApi.CoachProfileSettingsPrivacyResetPassword
- LytesnapBackendApi.CoachProfileTrainingLocations
- LytesnapBackendApi.CoachReview
- LytesnapBackendApi.CoachSession
- LytesnapBackendApi.CoachSessionProvided
- LytesnapBackendApi.CoachSessionPut
- LytesnapBackendApi.CoachSessionPutProvided
- LytesnapBackendApi.CoachSessionPutWhatToBring
- LytesnapBackendApi.CoachSessionWhatToBring
- LytesnapBackendApi.Filter
- LytesnapBackendApi.FilterFocusTags
- LytesnapBackendApi.FilterPriceRange
- LytesnapBackendApi.FilterSchedule
- LytesnapBackendApi.FilterSpecialties
- LytesnapBackendApi.InlineObject
- LytesnapBackendApi.InlineObject1
- LytesnapBackendApi.InlineObject10
- LytesnapBackendApi.InlineObject11
- LytesnapBackendApi.InlineObject12
- LytesnapBackendApi.InlineObject13
- LytesnapBackendApi.InlineObject14
- LytesnapBackendApi.InlineObject15
- LytesnapBackendApi.InlineObject16
- LytesnapBackendApi.InlineObject2
- LytesnapBackendApi.InlineObject3
- LytesnapBackendApi.InlineObject4
- LytesnapBackendApi.InlineObject5
- LytesnapBackendApi.InlineObject6
- LytesnapBackendApi.InlineObject7
- LytesnapBackendApi.InlineObject8
- LytesnapBackendApi.InlineObject9
- LytesnapBackendApi.InlineResponse200
- LytesnapBackendApi.InlineResponse2001
- LytesnapBackendApi.InlineResponse20010
- LytesnapBackendApi.InlineResponse20010CancellationReason
- LytesnapBackendApi.InlineResponse20011
- LytesnapBackendApi.InlineResponse20012
- LytesnapBackendApi.InlineResponse20013
- LytesnapBackendApi.InlineResponse20014
- LytesnapBackendApi.InlineResponse20015
- LytesnapBackendApi.InlineResponse20016
- LytesnapBackendApi.InlineResponse20017
- LytesnapBackendApi.InlineResponse20018
- LytesnapBackendApi.InlineResponse20019
- LytesnapBackendApi.InlineResponse2002
- LytesnapBackendApi.InlineResponse20020
- LytesnapBackendApi.InlineResponse20021
- LytesnapBackendApi.InlineResponse2003
- LytesnapBackendApi.InlineResponse2003SomeoneMessagedMe
- LytesnapBackendApi.InlineResponse2004
- LytesnapBackendApi.InlineResponse2005
- LytesnapBackendApi.InlineResponse2006
- LytesnapBackendApi.InlineResponse2007
- LytesnapBackendApi.InlineResponse2008
- LytesnapBackendApi.InlineResponse2008TopCities
- LytesnapBackendApi.InlineResponse2008TopStates
- LytesnapBackendApi.InlineResponse2009
- LytesnapBackendApi.InlineResponse201
- LytesnapBackendApi.InlineResponse2011
- LytesnapBackendApi.InlineResponse2012
- LytesnapBackendApi.InlineResponse2013
- LytesnapBackendApi.InlineResponse2014
- LytesnapBackendApi.InlineResponse2014Data
- LytesnapBackendApi.InlineResponse400
- LytesnapBackendApi.InlineResponse4001
- LytesnapBackendApi.InlineResponse400Errors
- LytesnapBackendApi.InlineResponse500
- LytesnapBackendApi.InlineResponse500Errors
- LytesnapBackendApi.Lesson
- LytesnapBackendApi.LessonCancelRequest
- LytesnapBackendApi.LessonProblemReport
- LytesnapBackendApi.LessonStudentInfo
- LytesnapBackendApi.LocationRequest
- LytesnapBackendApi.LocationRequestOptional
- LytesnapBackendApi.LocationResponse
- LytesnapBackendApi.StudentNotificationFilter
- LytesnapBackendApi.StudentNotificationFilterFilter
- LytesnapBackendApi.StudentPaymentMethod
- LytesnapBackendApi.StudentPaymentMethodCard
- LytesnapBackendApi.StudentProfile
- LytesnapBackendApi.StudentProfileBasicInfo
- LytesnapBackendApi.StudentProfileExperience
- LytesnapBackendApi.StudentProfileNotificationSettings
- LytesnapBackendApi.StudentProfileNotifications
- LytesnapBackendApi.StudentProfilePaymentMethods
- LytesnapBackendApi.StudentProfilePost
- LytesnapBackendApi.StudentProfilePostExperience
- LytesnapBackendApi.StudentProfilePostNotificationSettings
- LytesnapBackendApi.StudentProfilePostPaymentMethods
- LytesnapBackendApi.User
Documentation for Authorization
bearerAuth
- Type: Bearer authentication (JWT)