Wed Sep 28 2016
Copied to clipboard! Copy reply
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
API documentation!
===================

API endpoints for ideabnb

----------


`@GET /problems/all`  
> returns a list of all problems

`@GET /problem/:problem`
> returns a problem with all its ideas and the ideas pros and cons.
returns : {
   **slug** :  _string,_
   **problem_id** : _int_
   **user_id** : _int_
   **title** : _int_
   **description** :  _string_
   **priority** : _string_
   **created_at** : _string_
   **updated_at** : _string_
      **ideas** : [
         {
            **idea_id** : _int_
            **description** : _string_
            **problem_id** : _int_
            **user_id** : _int_
            **created_at** : _string_
            **updated_at** : _string_
            **pros_cons** : _[]_
         }
      ]
}