Building xml/json api

Hi!

I’m building my first API with rails and i hope someone can point me in
the right direction.
What I want to know is which tutorials I should watch/read and also
which gems/framework I should use. All tips will be helpful

The API should follow RESTful and HATEOAS (don’t have to be strictly)

The requirements for my api is.

  • at least json but preferably also xml
  • sort resources on dates
  • search for a resource in a http request
  • get resources belonging to a particular tag
  • CRUD

Thanks

On 12 February 2016 at 23:37, Roy R. [email protected] wrote:

The requirements for my api is.

  • at least json but preferably also xml
  • sort resources on dates
  • search for a resource in a http request
  • get resources belonging to a particular tag
  • CRUD

Have you already built conventional websites using Rails (or at least
worked right through a good tutorial such as railstutorial.org)?
Without knowing your experience it is difficult to answer the question
at the right level.

Colin

Colin L. wrote in post #1181373:

On 12 February 2016 at 23:37, Roy R. [email protected] wrote:

The requirements for my api is.

  • at least json but preferably also xml
  • sort resources on dates
  • search for a resource in a http request
  • get resources belonging to a particular tag
  • CRUD

Have you already built conventional websites using Rails (or at least
worked right through a good tutorial such as railstutorial.org)?
Without knowing your experience it is difficult to answer the question
at the right level.

Colin

I am a noob in rails and have worked through some tutorials in a couple
of weeks now.
I have decided to try out RABL anyway and it seems to work great this
far :slight_smile:

On 15 February 2016 at 21:39, Roy R. [email protected] wrote:

worked right through a good tutorial such as railstutorial.org)?
Without knowing your experience it is difficult to answer the question
at the right level.

Colin

I am a noob in rails and have worked through some tutorials in a couple
of weeks now.
I have decided to try out RABL anyway and it seems to work great this
far :slight_smile:

There is very little difference between a rails app intended for html
access and a json api. In fact the standard generated controllers
include json format responses. Generally I would recommend starting
out using the standard rails platform to generate an api before
considering moving on to something like RABL, but if you are happy
going down the route you have found then that is ok, obviously.

Colin