Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Usage with Ruby #9

Open
mperham opened this issue May 16, 2013 · 7 comments
Open

Usage with Ruby #9

mperham opened this issue May 16, 2013 · 7 comments

Comments

@mperham
Copy link
Contributor

mperham commented May 16, 2013

How do I use rest_suite with a Rails app? Am I supposed to use the netsuite-rest-client Ruby API in my Rails app talking to the JS in this project?

@JamesChristie
Copy link
Contributor

I'm currently filling in the README with info on deployment and accessing. The info should all be available later this morning. @mperham

@JamesChristie
Copy link
Contributor

@mperham Deployment instructions have been added to the README file. It's not a pleasant process, so please let me know of any problems or points of confusion you encounter. I'll leave the issue open until we seem reasonably satisfied the instructions are a truly good explanation.

@mperham
Copy link
Contributor Author

mperham commented May 16, 2013

We've got the deployment finished here, although we can't really test it because we need something on the client-side which knows how to call the restlets. Any ETA or advice on Ruby code that will do this? I assume netsuite-rest-client won't work for this.

@JamesChristie
Copy link
Contributor

@mperham Correct, it's now deprecated. We have a client library called NSS that we will also be releasing publicly very soon. Though, until that time all you need is a JSON object as the body of a POST request to the endpoint given in the deploy record. You can at least do some simple prodding that way.

@mperham
Copy link
Contributor Author

mperham commented May 16, 2013

@JamesChristie That sounds great. We'd be happy to take a look at NSS any time you want to show it off. I'm not a JS guy so I can't really help with this project but I can certainly help out on the Ruby API.

@JamesChristie
Copy link
Contributor

@mperham Just a small note, I had forgotten to include and have now added a how-to on building the auth header contents for a request. Our NSS library will do this from a yaml, but to use the js files directly you'll have to build it manually for the next little bit.

@JamesChristie
Copy link
Contributor

Continuing dev of the ruby client will continue here: https://github.com/acumenbrands/wyatt

and here: https://github.com/acumenbrands/wyatt_netsuite

These are going to be starting clean so the client can be built to a slightly higher standard than the current one, which has little to no test coverage and a somewhat out of date approach that targeted an earlier concept of rest_suite.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants