# REST API vs. the Ruby API

**URL:** <https://meta.discourse.org/t/rest-api-vs-the-ruby-api/108654>\
**Category:** Development\
**Created:** [February 8, 2019, 2:34am UTC](https://meta.discourse.org/t/rest-api-vs-the-ruby-api/108654 "2019-02-08T02:34:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kimardenmiller](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kimardenmiller/32/119631_2.png) [@kimardenmiller](https://meta.discourse.org/u/kimardenmiller)\
**Post date:** [February 8, 2019, 5:49am UTC](https://meta.discourse.org/t/rest-api-vs-the-ruby-api/108654/2 "2019-02-08T05:49:05Z")

</div>

Ok, looks as if placing my method in the api code and calling thought the client works:

```
response = client.set_group_user_note_lev(@group_name, user['id'], 2)
puts response

```

Though the response did not seem to print as it does in Postman, e.g.:

```
{
  "success": "OK"
}

```

It seems messy adding my code to the published Ruby API’s code. Best practices?

---

_[View the full topic](https://meta.discourse.org/t/rest-api-vs-the-ruby-api/108654)._
