tripletex_api 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13a0c857135e8290bff81c163f824ee4081836a00b327eae381c2167623ba2fe
4
- data.tar.gz: cb3b549ee4945c14a80070fab12ac34c63cf58a95456f15dda383756cb21bcd6
3
+ metadata.gz: 4ab9e2042913aed8a5de19c8223be6a290047550e67b4bc991553eb3d057dd20
4
+ data.tar.gz: 5f494fdafe17b4a44668484fd4b057e1f9c1229d3e34def8d5f06655986b3740
5
5
  SHA512:
6
- metadata.gz: aff417b1e66e177772db4531b3bd6986f313e520019b9e4f437dd4899ceb69342b07338f427a25c23f47d9442d2ce85cc3119d474efc35fb4e32125d655e77da
7
- data.tar.gz: 76e9e98195f85afa90043f34ccfa4d9406f755acd34885de133a550cbbf702499458b38ddb6c3520dac4c7263e36343124df8e784dcf3971d9fd58cdb4d21c00
6
+ metadata.gz: 35d19d83133d6c57421fb8b3805736c18ac8c9bb547fcee4b7a82804b6b42068ec3e7ca9c34acdddf89c3a080987da31f9aabed7d57e7e1e57c13a58a6acb117
7
+ data.tar.gz: 6c4ebd15f1c38eb35b6f0c1e7ce90b221f8f7577de5cbaa553178c6fab211313d6b9712851feca1cc1dedbbf6ba08783b34e3e8f62211f72293f6b6ff62b83d2
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  module TripletexApi
14
- VERSION = "1.0.0"
14
+ VERSION = "1.0.1"
15
15
  end
Binary file
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["Swagger-Codegen"]
23
23
  s.email = [""]
24
- s.homepage = "https://github.com/swagger-api/swagger-codegen"
24
+ s.homepage = "https://github.com/sveredyuk/tripletex_ruby"
25
25
  s.summary = "Tripletex API Ruby Gem"
26
26
  s.description = "The Tripletex API is a **RESTful API**, which does not implement PATCH, but uses a PUT with optional fields. **Actions** or commands are represented in our RESTful path with a prefixed `:`. Example: `/v2/hours/123/:approve`. **Summaries** or aggregated results are represented in our RESTful path with a prefixed <code>&gt;</code>. Example: <code>/v2/hours/&gt;thisWeeksBillables</code>. **\"requestID\"** is a key found in all validation and error responses. If additional log information is absolutely necessary, our support division can locate the key value. **Download** the [swagger.json](/v2/swagger.json) file [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification) to [generate code](https://github.com/swagger-api/swagger-codegen). This document was generated from the Swagger JSON file. **version:** This is a versioning number found on all DB records. If included, it will prevent your PUT/POST from overriding any updates to the record since your GET. **Date & DateTime** follows the **ISO 8601** standard. Date: `YYYY-MM-DD`. DateTime: `YYYY-MM-DDThh:mm:ssZ` **Sorting** is done by specifying a comma separated list, where a `-` prefix denotes descending. You can sort by sub object with the following format: `project.name, -date`. **Searching:** is done by entering values in the optional fields for each API call. The values fall into the following categories: range, in, exact and like. **Missing fields or even no response data** can occur because result objects and fields are filtered on authorization. **See [FAQ](https://tripletex.no/execute/docViewer?articleId=906&language=0) for more additional information.** ## Authentication: - **Tokens:** The Tripletex API uses 3 different tokens - **consumerToken**, **employeeToken** and **sessionToken**. - **consumerToken** is a token provided to the consumer by Tripletex after the API 2.0 registration is completed. - **employeeToken** is a token created by an administrator in your Tripletex account via the user settings and the tab \"API access\". Each employee token must be given a set of entitlements. [Read more here.](https://tripletex.no/execute/docViewer?articleId=853&language=0) - **sessionToken** is the token from `/token/session/:create` which requires a consumerToken and an employeeToken created with the same consumer token, but not an authentication header. See how to create a sessionToken [here](https://tripletex.no/execute/docViewer?articleId=855&language=0). - The session token is used as the password in \"Basic Authentication Header\" for API calls. - Use blank or `0` as username for accessing the account with regular employee token, or if a company owned employee token accesses <code>/company/&gt;withLoginAccess</code> or <code>/token/session/&gt;whoAmI</code>. - For company owned employee tokens (accounting offices) the ID from <code>/company/&gt;withLoginAccess</code> can be used as username for accessing client accounts. - If you need to create the header yourself use <code>Authorization: Basic &lt;base64encode('0:sessionToken')&gt;</code>. ## Tags: - <div class=\"tag-icon-beta\"></div> **[BETA]** This is a beta endpoint and can be subject to change. - <div class=\"tag-icon-deprecated\"></div> **[DEPRECATED]** Deprecated means that we intend to remove/change this feature or capability in a future \"major\" API release. We therefore discourage all use of this feature/capability. ## Fields: Use the `fields` parameter to specify which fields should be returned. This also supports fields from sub elements. Example values: - `project,activity,hours` returns `{project:..., activity:...., hours:...}`. - just `project` returns `\"project\" : { \"id\": 12345, \"url\": \"tripletex.no/v2/projects/12345\" }`. - `project(*)` returns `\"project\" : { \"id\": 12345 \"name\":\"ProjectName\" \"number.....startDate\": \"2013-01-07\" }`. - `project(name)` returns `\"project\" : { \"name\":\"ProjectName\" }`. - All elements and some subElements : `*,activity(name),employee(*)`. ## Changes: To get the changes for a resource, `changes` have to be explicitly specified as part of the `fields` parameter, e.g. `*,changes`. There are currently two types of change available: - `CREATE` for when the resource was created - `UPDATE` for when the resource was updated NOTE: For objects created prior to October 24th 2018 the list may be incomplete, but will always contain the CREATE and the last change (if the object has been changed after creation). ## Rate limiting in each response header: Rate limiting is performed on the API calls for an employee for each API consumer. Status regarding the rate limit is returned as headers: - `X-Rate-Limit-Limit` - The number of allowed requests in the current period. - `X-Rate-Limit-Remaining` - The number of remaining requests. - `X-Rate-Limit-Reset` - The number of seconds left in the current period. Once the rate limit is hit, all requests will return HTTP status code `429` for the remainder of the current period. ## Response envelope: ``` { \"fullResultSize\": ###, \"from\": ###, // Paging starting from \"count\": ###, // Paging count \"versionDigest\": \"Hash of full result\", \"values\": [...list of objects...] } { \"value\": {...single object...} } ``` ## WebHook envelope: ``` { \"subscriptionId\": ###, \"event\": \"object.verb\", // As listed from /v2/event/ \"id\": ###, // Object id \"value\": {... single object, null if object.deleted ...} } ``` ## Error/warning envelope: ``` { \"status\": ###, // HTTP status code \"code\": #####, // internal status code of event \"message\": \"Basic feedback message in your language\", \"link\": \"Link to doc\", \"developerMessage\": \"More technical message\", \"validationMessages\": [ // Will be null if Error { \"field\": \"Name of field\", \"message\": \"Validation failure information\" } ], \"requestId\": \"UUID used in any logs\" } ``` ## Status codes / Error codes: - **200 OK** - **201 Created** - From POSTs that create something new. - **204 No Content** - When there is no answer, ex: \"/:anAction\" or DELETE. - **400 Bad request** - - **4000** Bad Request Exception - **11000** Illegal Filter Exception - **12000** Path Param Exception - **24000** Cryptography Exception - **401 Unauthorized** - When authentication is required and has failed or has not yet been provided - **3000** Authentication Exception - **9000** Security Exception - **403 Forbidden** - When AuthorisationManager says no. - **404 Not Found** - For content/IDs that does not exist. - **6000** Not Found Exception - **409 Conflict** - Such as an edit conflict between multiple simultaneous updates - **7000** Object Exists Exception - **8000** Revision Exception - **10000** Locked Exception - **14000** Duplicate entry - **422 Bad Request** - For Required fields or things like malformed payload. - **15000** Value Validation Exception - **16000** Mapping Exception - **17000** Sorting Exception - **18000** Validation Exception - **21000** Param Exception - **22000** Invalid JSON Exception - **23000** Result Set Too Large Exception - **429 Too Many Requests** - Request rate limit hit - **500 Internal Error** - Unexpected condition was encountered and no more specific message is suitable - **1000** Exception"
27
27
  # TODO uncommnet and update below with a proper license
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tripletex_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swagger-Codegen
@@ -1315,8 +1315,9 @@ files:
1315
1315
  - spec/models/weekly_status_spec.rb
1316
1316
  - spec/models/working_hours_scheme_spec.rb
1317
1317
  - spec/spec_helper.rb
1318
+ - tripletex_api-1.0.0.gem
1318
1319
  - tripletex_api.gemspec
1319
- homepage: https://github.com/swagger-api/swagger-codegen
1320
+ homepage: https://github.com/sveredyuk/tripletex_ruby
1320
1321
  licenses: []
1321
1322
  metadata: {}
1322
1323
  post_install_message: