o.js
o.js copied to clipboard
Documentation
where can I get detailed documentation on methods ?
Each public method has a JSDoc annotation. We don't have any more documentation atm. What do you need?
Also looking for documentation. Specifically the syntax for deleting relations (links) between entities.
so for that you best look at the odata spec: http://docs.oasis-open.org/odata/odata/v4.01/csprd05/part2-url-conventions/odata-v4.01-csprd05-part2-url-conventions.html#sec_AddressingReferencesbetweenEntities
Basically (without ever have tested it) you just need to add a $ref
. You can request them like this:
o('http://my-odata.service.org').get('Categories(0)/Products/$ref').query()
I guess you can use post, put and delete here as well, to remove or add them. The details of this should be in the spec.
if the index.d.ts file were used in the root directory and the entire project was done through it and is also specified in types (typings), as the TypeScript documentation says, it would be much easier to use your module for development
Agree, needs to be fixed. There are no typings attached :man_facepalming:
Can you check the latest 1.0.3 release if the typings are now correct?
Yes, I looked at the documentation that was generated, but I found a couple of comments.
in OHandler.d.ts
Look in line where use get method you write in correct,
having forgotten "')" and I also think that if you insert this example it will not work since " ' " will not be escaped, you need to use ' " ' to insert the text
OdataConfig
return "void" , but in defaultConfigValues returned "null"
And