Skip to content

Commit

Permalink
Merge pull request #73 from janhommes/enhancement/#62
Browse files Browse the repository at this point in the history
release 0.4.0 #62 #74
  • Loading branch information
janhommes authored Aug 10, 2018
2 parents e36f6b1 + b8fcbd5 commit 6a0945e
Show file tree
Hide file tree
Showing 7 changed files with 168 additions and 140 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# o.js

_o.js beta v0.3.8_
_o.js beta v0.4.0_

o.js is a client side Odata Javascript library to simplify the request of data. The main goal is to build a **standalone, lightweight and easy** to understand Odata lib.

Expand Down Expand Up @@ -223,7 +223,7 @@ o().config({
username: null, // the basic auth username
password: null, // the basic auth password
isAsync: true // set this to false to enable sync requests. Only usable without basic auth
isCors: true, // set this to false to disable CORS
isWithCredentials: false, // set this to true to use basic auth
isHashRoute: true, // set this var to false to disable automatic #-hash setting on routes
appending: '' // set this value to append something to a any request. eg.: [{name:'apikey', value:'xyz'}]
});
Expand Down Expand Up @@ -274,3 +274,7 @@ Currently the following queries are supported:
`.remove(object)` - DELETE data on an endpoint (You must define only one resource: e.g: Products(1) )

`.query()` - get the query as string

`.raw` - gives the raw data in a callback

`.xhr` - allows access to the xhr object to get headers
3 changes: 2 additions & 1 deletion example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function ViewModel() {

//o.js init
o().config({
endpoint: 'http://services.odata.org/V4/%28S%28wptr35qf3bz4kb5oatn432ul%29%29/TripPinServiceRW/',
endpoint: 'https://services.odata.org/V4/%28S%28wptr35qf3bz4kb5oatn432ul%29%29/TripPinServiceRW/',
version: 4,
strictMode: true,
start: function () {
Expand All @@ -39,6 +39,7 @@ function ViewModel() {
ready: function () {
self.isLoading(false);
},

headers: [{ name: 'If-Match', value: '*' }]
});

Expand Down
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h2 data-bind="text:LastName"></h4>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="js/q.js"></script>
<script src="../o.min.js"></script>
<script src="../o.js"></script>
<script src="js/knockout-3.2.0.js"></script>
<script src="js/ko.bindinghandler.currency.js"></script>
<script src="app.js"></script>
Expand Down
Loading

0 comments on commit 6a0945e

Please sign in to comment.