1.1.0 • Published 6 years ago

apo-wsapi v1.1.0

Weekly downloads
1
License
Unlicense
Repository
-
Last release
6 years ago

api

Api - JavaScript client for 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: 1.0
  • Package version: 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 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 api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('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/YOUR_USERNAME/api then install it via:

    npm install YOUR_USERNAME/api --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 Api = require('api');

var api = new Api.DefaultApi()

var urlId = "urlId_example"; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.checkingUrlIdByUrlIdGet(urlId, callback);

Documentation for API Endpoints

All URIs are relative to http://api.profiles.sydney.edu.au/AcademicProfiles/interfaces/rest

ClassMethodHTTP requestDescription
Api.DefaultApicheckingUrlIdByUrlIdGetGET /checkingUrlId/{urlId}CheckingUrlIdByUrlId_GET
Api.DefaultApidoesHaveCVByStaffIdGetGET /doesHaveCV/{staffId}DoesHaveCVByStaffId_GET
Api.DefaultApidoesHavePhotoByStaffIdGetGET /doesHavePhoto/{staffId}DoesHavePhotoByStaffId_GET
Api.DefaultApigetAllStaffIdsGetGET /getAllStaffIdsGetAllStaffIds_GET
Api.DefaultApigetApproachOptionsByDomainIdGetGET /getApproachOptions/{domainId}GetApproachOptionsByDomainId_GET
Api.DefaultApigetAuthorDetailsByStaffIdGetGET /getAuthorDetails/{staffId}GetAuthorDetailsByStaffId_GET
Api.DefaultApigetAuthorsNewKeywordsByStaffIdAndNewKeywordGroupIdGetGET /getAuthorsNewKeywords/{staffId}/{newKeywordGroupId}GetAuthorsNewKeywordsByStaffId_GET
Api.DefaultApigetBookSellingLinksByStaffIdGetGET /getBookSellingLinks/{staffId}GetBookSellingLinksByStaffId_GET
Api.DefaultApigetBuildingByDomainIdModeByStaffIdAndDomainIdGetGET /getBuildingByDomainId/{staffId}/{domainId}/{mode}GetBuildingByDomainIdModeByStaffId_GET
Api.DefaultApigetBuildingByOrgUnitCodeModeByStaffIdAndOrgUnitCodeGetGET /getBuildingByOrgUnitCode/{staffId}/{orgUnitCode}/{mode}GetBuildingByOrgUnitCodeModeByStaffId_GET
Api.DefaultApigetCentreListForStaffByStaffIdGetGET /getCentreListForStaff/{staffId}GetCentreListForStaffByStaffId_GET
Api.DefaultApigetCollaboratorByStaffIdGetGET /getCollaborator/{staffId}GetCollaboratorByStaffId_GET
Api.DefaultApigetCountryOptionsByDomainIdGetGET /getCountryOptions/{domainId}GetCountryOptionsByDomainId_GET
Api.DefaultApigetCurrentGrantSizeByStaffIdGetGET /getCurrentGrantSize/{staffId}GetCurrentGrantSizeByStaffId_GET
Api.DefaultApigetDepartmentMembersByCodeGetGET /getDepartmentMembers/{code}GetDepartmentMembersByCode_GET
Api.DefaultApigetDesciplineOptionsPostPOST /getDesciplineOptionsGetDesciplineOptions_POST
Api.DefaultApigetDomainMembersByDomainIdGetGET /getDomainMembers/{domainId}GetDomainMembersByDomainId_GET
Api.DefaultApigetDomainMembersWithExpertiseInfoByDomainIdGetGET /getDomainMembersWithExpertiseInfo/{domainId}GetDomainMembersWithExpertiseInfo_GET
Api.DefaultApigetDomainOptionsGetGET /getDomainOptionsGetDomainOptions_GET
Api.DefaultApigetExpertiseDetailsByStaffIdGetGET /getExpertiseDetails/{staffId}GetExpertiseDetailsByStaffId_GET
Api.DefaultApigetGrantDetailsByStaffIdGetGET /getGrantDetails/{staffId}GetGrantDetailsByStaffId_GET
Api.DefaultApigetGrantSizeByStaffIdGetGET /getGrantSize/{staffId}GetGrantSizeByStaffId_GET
Api.DefaultApigetGrantsForCentreByCentreIdGetGET /getGrantsForCentre/{centreId}GetGrantsForCentreByCentreId_GET
Api.DefaultApigetHonoursProjectByProjIdGetGET /getHonoursProject/{projId}GetHonoursProjectByProjId_GET
Api.DefaultApigetHonoursSupervisorByStaffIdGetGET /getHonoursSupervisor/{staffId}GetHonoursSupervisorByStaffId_GET
Api.DefaultApigetHrPersonByStaffIdGetGET /getHrPerson/{staffId}GetHrPersonByStaffId_GET
Api.DefaultApigetKeywordOptionsByDomainIdGetGET /getKeywordOptions/{domainId}GetKeywordOptionsByDomainId_GET
Api.DefaultApigetMediaKeywordsByStaffIdGetGET /getMediaKeywords/{staffId}GetMediaKeywordsByStaffId_GET
Api.DefaultApigetMembersByCodeAndJobTypeByCodeAndJobTypeGetGET /getMembersByCodeAndJobType/{code}/{jobType}GetMembersByCodeAndJobTypeByCode_GET
Api.DefaultApigetMembersByCodeListAndJobTypePostPOST /getMembersByCodeListAndJobTypeGetMembersByCodeListAndJobType_POST
Api.DefaultApigetMembersByDomainAndJobTypeByDomainIdAndJobTypeGetGET /getMembersByDomainAndJobType/{domainId}/{jobType}GetMembersByDomainAndJobTypeByDomainId_GET
Api.DefaultApigetMembersByDomainListAndJobTypePostPOST /getMembersByDomainListAndJobTypeGetMembersByDomainListAndJobType_POST
Api.DefaultApigetNewKeywordsByGroupByNewKeywordGroupIdGetGET /getNewKeywordsByGroup/{newKeywordGroupId}GetNewKeywordsByGroupByNewKeywordGroupId_GET
Api.DefaultApigetOrgUnitsByTypeByTypeGetGET /getOrgUnitsByType/{type}GetOrgUnitsByTypeByType_GET
Api.DefaultApigetProfileUrlByDomainIdByDomainIdGetGET /getProfileUrlByDomainId/{domainId}GetProfileUrlByDomainIdByDomainId_GET
Api.DefaultApigetProfileUrlByOrgUnitCodeByOrgUnitCodeGetGET /getProfileUrlByOrgUnitCode/{orgUnitCode}GetProfileUrlByOrgUnitCodeByOrgUnitCode_GET
Api.DefaultApigetProjectSearchResultSizeByQueryStringGetGET /getProjectSearchResultSize/{queryString}GetProjectSearchResultSizeByQueryString_GET
Api.DefaultApigetPublicationAuthorByYearYEndByStaffIdAndYStartGetGET /getPublicationAuthorByYear/{staffId}/{yStart}/{yEnd}GetPublicationAuthorByYearYEndByStaffId_GET
Api.DefaultApigetPublicationsForCentreByCentreIdGetGET /getPublicationsForCentre/{centreId}GetPublicationsForCentreByCentreId_GET
Api.DefaultApigetPublicationsForGroupPostPOST /getPublicationsForGroupGetPublicationsForGroup_POST
Api.DefaultApigetPublicationsPostPOST /getPublicationsGetPublications_POST
Api.DefaultApigetPublishingActiveAuthorByStaffIdGetGET /getPublishingActiveAuthor/{staffId}GetPublishingActiveAuthorByStaffId_GET
Api.DefaultApigetResearchSupervisorByStaffIdGetGET /getResearchSupervisor/{staffId}GetResearchSupervisorByStaffId_GET
Api.DefaultApigetSearchResultSizeByQueryStringGetGET /getSearchResultSize/{queryString}GetSearchResultSizeByQueryString_GET
Api.DefaultApigetSelectOptionsByCategoryAndDomainIdGetGET /getSelectOptions/{category}/{domainId}GetSelectOptionsByCategoryAndDomainId_GET
Api.DefaultApigetStaffIdByUrlIdGetGET /getStaffId/{urlId}GetStaffIdByUrlId_GET
Api.DefaultApigetStaffListByCentreIdByCentreIdGetGET /getStaffListByCentreId/{centreId}GetStaffListByCentreIdByCentreId_GET
Api.DefaultApigetStaffListByIRMACenterIdByCenterIdGetGET /getStaffListByIRMACenterId/{centerId}GetStaffListByIRMACenterIdByCenterId_GET
Api.DefaultApigetStaffProfileUrlByStaffIdGetGET /getStaffProfileUrl/{staffId}GetStaffProfileUrlByStaffId_GET
Api.DefaultApigetStaffProfileUrlForReportingByStaffIdGetGET /getStaffProfileUrlForReporting/{staffId}GetStaffProfileUrlForReportingByStaffId_GET
Api.DefaultApigetStaffSearchFieldsGetGET /getStaffSearchFieldsGetStaffSearchFields_GET
Api.DefaultApigetStaffSearchSortingFieldsGetGET /getStaffSearchSortingFieldsGetStaffSearchSortingFields_GET
Api.DefaultApigetSupervisedStudentsByStaffIdGetGET /getSupervisedStudents/{staffId}GetSupervisedStudentsByStaffId_GET
Api.DefaultApigetThemeOptionsByDomainIdGetGET /getThemeOptions/{domainId}GetThemeOptionsByDomainId_GET
Api.DefaultApigetThemeOptionsByOrgUnitCodeByOrgUnitCodeGetGET /getThemeOptionsByOrgUnitCode/{orgUnitCode}GetThemeOptionsByOrgUnitCode_GET
Api.DefaultApigetThemesByStaffIdGetGET /getThemes/{staffId}GetThemesByStaffId_GET
Api.DefaultApigetThesisListByStaffIdGetGET /getThesisList/{staffId}GetThesisListByStaffId_GET
Api.DefaultApiisBlacklistedByStaffIdGetGET /isBlacklisted/{staffId}IsBlacklistedByStaffId_GET
Api.DefaultApiisCurrentByStaffIdGetGET /isCurrent/{staffId}IsCurrentByStaffId_GET
Api.DefaultApiisCurrentInDomainByStaffIdAndDomainIdGetGET /isCurrentInDomain/{staffId}/{domainId}IsCurrentInDomainByStaffIdAndDomainId_GET
Api.DefaultApiisCurrentInOrgUnitCodeByStaffIdAndOrgUnitCodeGetGET /isCurrentInOrgUnitCode/{staffId}/{orgUnitCode}IsCurrentInOrgUnitCodeByStaffId_GET
Api.DefaultApiperformProjectSearchRangeSortIsReverseByQueryStringAndStartIndexGetGET /performProjectSearch/{queryString}/{startIndex}/{range}/{sort}/{isReverse}PerformProjectSearchRangeSortIsReverse_GET
Api.DefaultApiperformSimpleAttributeSearchRangeSortIsReverseByQueryStringAndStartIndexGetGET /performSimpleAttributeSearch/{queryString}/{startIndex}/{range}/{sort}/{isReverse}PerformSimpleAttributeSearchRangeSortIsReverse_GET
Api.DefaultApiupdateCacheByStaffIdGetGET /updateCache/{staffId}UpdateCacheByStaffId_GET

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

1.1.0

6 years ago

1.0.0

6 years ago