|
| 1 | +# api_v1 |
| 2 | + |
| 3 | +ApiV1 - JavaScript client for api_v1 |
| 4 | +No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) |
| 5 | +This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: |
| 6 | + |
| 7 | +- API version: v1 |
| 8 | +- Package version: v1 |
| 9 | +- Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen |
| 10 | + |
| 11 | +## Installation |
| 12 | + |
| 13 | +### For [Node.js](https://nodejs.org/) |
| 14 | + |
| 15 | +#### npm |
| 16 | + |
| 17 | +To publish the library as a [npm](https://www.npmjs.com/), |
| 18 | +please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages). |
| 19 | + |
| 20 | +Then install it via: |
| 21 | + |
| 22 | +```shell |
| 23 | +npm install api_v1 --save |
| 24 | +``` |
| 25 | + |
| 26 | +#### git |
| 27 | +# |
| 28 | +If the library is hosted at a git repository, e.g. |
| 29 | +https://github.com/GIT_USER_ID/GIT_REPO_ID |
| 30 | +then install it via: |
| 31 | + |
| 32 | +```shell |
| 33 | + npm install GIT_USER_ID/GIT_REPO_ID --save |
| 34 | +``` |
| 35 | + |
| 36 | +### For browser |
| 37 | + |
| 38 | +The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following |
| 39 | +the above steps with Node.js and installing browserify with `npm install -g browserify`, |
| 40 | +perform the following (assuming *main.js* is your entry file): |
| 41 | + |
| 42 | +```shell |
| 43 | +browserify main.js > bundle.js |
| 44 | +``` |
| 45 | + |
| 46 | +Then include *bundle.js* in the HTML pages. |
| 47 | + |
| 48 | +### Webpack Configuration |
| 49 | + |
| 50 | +Using Webpack you may encounter the following error: "Module not found: Error: |
| 51 | +Cannot resolve module", most certainly you should disable AMD loader. Add/merge |
| 52 | +the following section to your webpack config: |
| 53 | + |
| 54 | +```javascript |
| 55 | +module: { |
| 56 | + rules: [ |
| 57 | + { |
| 58 | + parser: { |
| 59 | + amd: false |
| 60 | + } |
| 61 | + } |
| 62 | + ] |
| 63 | +} |
| 64 | +``` |
| 65 | + |
| 66 | +## Getting Started |
| 67 | + |
| 68 | +Please follow the [installation](#installation) instruction and execute the following JS code: |
| 69 | + |
| 70 | +```javascript |
| 71 | +var ApiV1 = require('api_v1'); |
| 72 | +var defaultClient = ApiV1.ApiClient.instance; |
| 73 | + |
| 74 | +// Configure API key authorization: Bearer |
| 75 | +var Bearer = defaultClient.authentications['Bearer']; |
| 76 | +Bearer.apiKey = "YOUR API KEY" |
| 77 | +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) |
| 78 | +//Bearer.apiKeyPrefix['Authorization'] = "Token" |
| 79 | + |
| 80 | +var api = new ApiV1.InvitationsApi() |
| 81 | +var callback = function(error, data, response) { |
| 82 | + if (error) { |
| 83 | + console.error(error); |
| 84 | + } else { |
| 85 | + console.log('API called successfully.'); |
| 86 | + } |
| 87 | +}; |
| 88 | +api.apiV1InvitationsGet(callback); |
| 89 | +``` |
| 90 | + |
| 91 | +## Documentation for API Endpoints |
| 92 | + |
| 93 | +All URIs are relative to *https://menadevs.com/api/v1/* |
| 94 | + |
| 95 | +Class | Method | HTTP request | Description |
| 96 | +------------ | ------------- | ------------- | ------------- |
| 97 | +*ApiV1.InvitationsApi* | [**apiV1InvitationsGet**](docs/InvitationsApi.md#apiV1InvitationsGet) | **GET** /api/v1/invitations | Invitation |
| 98 | +*ApiV1.InvitationsApi* | [**createNewInvitation**](docs/InvitationsApi.md#createNewInvitation) | **POST** /api/v1/invitations | Invitation |
| 99 | +*ApiV1.JobApi* | [**apiV1JobsIdGet**](docs/JobApi.md#apiV1JobsIdGet) | **GET** /api/v1/jobs/{id} | Retrieves a job |
| 100 | +*ApiV1.JobsApi* | [**apiV1JobsGet**](docs/JobsApi.md#apiV1JobsGet) | **GET** /api/v1/jobs | All jobs |
| 101 | +*ApiV1.UserApi* | [**apiV1UsersIdGet**](docs/UserApi.md#apiV1UsersIdGet) | **GET** /api/v1/users/{id} | Retrieves a user |
| 102 | +*ApiV1.UserApi* | [**apiV1UsersSearchGet**](docs/UserApi.md#apiV1UsersSearchGet) | **GET** /api/v1/users/search | Searches for a user using an incorrect query parameter |
| 103 | +*ApiV1.UsersApi* | [**apiV1UsersGet**](docs/UsersApi.md#apiV1UsersGet) | **GET** /api/v1/users | All users |
| 104 | + |
| 105 | +## Documentation for Models |
| 106 | + |
| 107 | + - [ApiV1.ErrorsMap](docs/ErrorsMap.md) |
| 108 | + - [ApiV1.ErrorsObject](docs/ErrorsObject.md) |
| 109 | + - [ApiV1.Invitation](docs/Invitation.md) |
| 110 | + - [ApiV1.InvitationInvitation](docs/InvitationInvitation.md) |
| 111 | + - [ApiV1.Jobs](docs/Jobs.md) |
| 112 | + - [ApiV1.JobsAttributes](docs/JobsAttributes.md) |
| 113 | + - [ApiV1.JobsData](docs/JobsData.md) |
| 114 | + - [ApiV1.JobsMeta](docs/JobsMeta.md) |
| 115 | + - [ApiV1.JobsPagination](docs/JobsPagination.md) |
| 116 | + - [ApiV1.User](docs/User.md) |
| 117 | + - [ApiV1.Users](docs/Users.md) |
| 118 | + - [ApiV1.UsersAttributes](docs/UsersAttributes.md) |
| 119 | + - [ApiV1.UsersData](docs/UsersData.md) |
| 120 | + |
| 121 | +## Documentation for Authorization |
| 122 | + |
| 123 | + |
| 124 | +### Bearer |
| 125 | + |
| 126 | +- **Type**: API key |
| 127 | +- **API key parameter name**: Authorization |
| 128 | +- **Location**: HTTP header |
| 129 | + |
0 commit comments