restful_api v1.0.6
restful_api
RestfulApi - JavaScript client for restful_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.6
- Package version: 1.0.6
- 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 restful_api --save
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/restful_api then install it via:
npm install YOUR_USERNAME/restful_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):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Getting Started
Please follow the installation instruction and execute the following JS code:
var RestfulApi = require('restful_api');
var api = new RestfulApi.DefaultApi()
var name = "name_example"; // {String}
var accessToken = "accessToken_example"; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.addHobby(name, accessToken, callback);
Documentation for API Endpoints
All URIs are relative to http://www.outiejun.cc:9090/v1
Class | Method | HTTP request | Description |
---|---|---|---|
RestfulApi.DefaultApi | addHobby | PUT /user/hobby | |
RestfulApi.DefaultApi | addTag | PUT /user/tag | |
RestfulApi.DefaultApi | createActivity | POST /activity | |
RestfulApi.DefaultApi | createFeedback | POST /feedback | |
RestfulApi.DefaultApi | createMoment | POST /moment | |
RestfulApi.DefaultApi | createOrder | POST /order | |
RestfulApi.DefaultApi | createReceive | POST /receive | |
RestfulApi.DefaultApi | createVisitor | POST /spu/{id}/visitor | |
RestfulApi.DefaultApi | deleteHobby | DELETE /user/hobby | |
RestfulApi.DefaultApi | deleteMoment | DELETE /moment/my | |
RestfulApi.DefaultApi | deleteOrder | DELETE /order/{id} | |
RestfulApi.DefaultApi | deleteTag | DELETE /user/tag | |
RestfulApi.DefaultApi | deleteTeamMember | DELETE /team/member/{username} | |
RestfulApi.DefaultApi | getActivityById | GET /activity/{id} | |
RestfulApi.DefaultApi | getBenefits | GET /user/benefit | |
RestfulApi.DefaultApi | getCityByGpsName | GET /gps/city | |
RestfulApi.DefaultApi | getCityByProvince | GET /city | |
RestfulApi.DefaultApi | getDistrictByCity | GET /district | |
RestfulApi.DefaultApi | getEntCertification | GET /entcertification | |
RestfulApi.DefaultApi | getIndexModel | GET /index | |
RestfulApi.DefaultApi | getMessagesById | GET /message/{id} | |
RestfulApi.DefaultApi | getNewsById | GET /news/{id} | |
RestfulApi.DefaultApi | getOrderById | GET /order/{id} | |
RestfulApi.DefaultApi | getProvince | GET /province | |
RestfulApi.DefaultApi | getPslCertification | GET /pslcertification | |
RestfulApi.DefaultApi | getServiceByEnt | GET /service/{id} | |
RestfulApi.DefaultApi | getSpuById | GET /spu/{id} | |
RestfulApi.DefaultApi | getSpuHourlyPricing | GET /spu/{id}/hourlyprice | |
RestfulApi.DefaultApi | getSpuHourlyPricingBySeatAndDate | GET /spu/{id}/{label}/{date}/hourlyprice | |
RestfulApi.DefaultApi | getSpuImagesById | GET /spu/{id}/images | |
RestfulApi.DefaultApi | getSpuPriceByMonthAndSeat | GET /spu/{id}/{label}/{month}/price | |
RestfulApi.DefaultApi | getSpuVisitors | GET /spu/{id}/visitor | |
RestfulApi.DefaultApi | getTeamById | GET /team/{teamid} | |
RestfulApi.DefaultApi | getTeamByMember | GET /team | |
RestfulApi.DefaultApi | getUserInfo | GET /user | |
RestfulApi.DefaultApi | getUserInfoByUsername | GET /user/{username} | |
RestfulApi.DefaultApi | getUserInfoListByActivityId | GET /user/activity/{id} | |
RestfulApi.DefaultApi | hasNewMessage | GET /message/hasnew | |
RestfulApi.DefaultApi | joinTeam | POST /team/{teamid} | |
RestfulApi.DefaultApi | likeMoment | PUT /moment/{id} | |
RestfulApi.DefaultApi | listActivity | GET /activity | |
RestfulApi.DefaultApi | listAllMoment | GET /moment | |
RestfulApi.DefaultApi | listBanner | GET /banner | |
RestfulApi.DefaultApi | listIndustry | GET /user/industry | |
RestfulApi.DefaultApi | listMessage | GET /message | |
RestfulApi.DefaultApi | listMessage_0 | GET /message | |
RestfulApi.DefaultApi | listMyMoment | GET /moment/my | |
RestfulApi.DefaultApi | listNews | GET /news | |
RestfulApi.DefaultApi | listOrder | GET /order | |
RestfulApi.DefaultApi | listPredefinedTags | GET /user/tag | |
RestfulApi.DefaultApi | listReceiveOrder | GET /receive | |
RestfulApi.DefaultApi | listService | GET /service | |
RestfulApi.DefaultApi | listSpuByCategory | GET /spu | |
RestfulApi.DefaultApi | listTeamMember | GET /team/member | |
RestfulApi.DefaultApi | login | POST /session | |
RestfulApi.DefaultApi | logout | DELETE /session | |
RestfulApi.DefaultApi | sendvcode | POST /sms | |
RestfulApi.DefaultApi | submitEntCertification | POST /entcertification | |
RestfulApi.DefaultApi | submitPslCertification | POST /pslcertification | |
RestfulApi.DefaultApi | updateBirthday | PUT /user/birthday | |
RestfulApi.DefaultApi | updateDescription | PUT /team/description | |
RestfulApi.DefaultApi | updateEnt | PUT /user/ent | |
RestfulApi.DefaultApi | updateFrom | PUT /user/from | |
RestfulApi.DefaultApi | updateIndustry | PUT /user/industry | |
RestfulApi.DefaultApi | updateName | PUT /user/name | |
RestfulApi.DefaultApi | updatePhoto | PUT /user/photo | |
RestfulApi.DefaultApi | updateSex | PUT /user/sex | |
RestfulApi.DefaultApi | updateSignature | PUT /user/signature | |
RestfulApi.DefaultApi | updateTeamPhoto | PUT /team/photo |
Documentation for Models
- RestfulApi.ActivityModel
- RestfulApi.BannerModel
- RestfulApi.EnterpriseModel
- RestfulApi.ErrorModel
- RestfulApi.InlineResponse200
- RestfulApi.InlineResponse2001
- RestfulApi.InlineResponse20010
- RestfulApi.InlineResponse20011
- RestfulApi.InlineResponse20012
- RestfulApi.InlineResponse20013
- RestfulApi.InlineResponse20014
- RestfulApi.InlineResponse20015
- RestfulApi.InlineResponse20015Times
- RestfulApi.InlineResponse20016
- RestfulApi.InlineResponse2002
- RestfulApi.InlineResponse2002Comments
- RestfulApi.InlineResponse2003
- RestfulApi.InlineResponse2004
- RestfulApi.InlineResponse2005
- RestfulApi.InlineResponse2005Members
- RestfulApi.InlineResponse2006
- RestfulApi.InlineResponse2007
- RestfulApi.InlineResponse2008
- RestfulApi.InlineResponse2009
- RestfulApi.MessageModel
- RestfulApi.MomentModel
- RestfulApi.MomentModelLikers
- RestfulApi.NavigationModel
- RestfulApi.NavigationModelInner
- RestfulApi.NewsModel
- RestfulApi.OrderModel
- RestfulApi.ServiceModel
- RestfulApi.SkuModel
- RestfulApi.SpuModel
- RestfulApi.TeamModel
- RestfulApi.UserModel
- RestfulApi.UserModelTag
Documentation for Authorization
All endpoints do not require authorization.