BidOnMyJob

POST /api/v1/users

         
        Request:
        {
          "user": {
          "username": "jondoe",
          "password": "!QAZzaq1",
          "email": "jondoe@example.com",
          "role": "bidder",
          "tos": "true"
          },
          "client_id" : "9fa5b3554fecf87e92b850135f73ace798395c1932d7a1a40e282ad3efac9c9a"
          }
         
        Response:
        {
          "user": {
          "id": 5,
          "username": "jondoe",
          "email": "jondoe@example.com",
          "role": "bidder",
          "access_token": {
          "resource_owner_id": 14,
          "scopes": [],
          "expires_in_seconds": null,
          "application": {
          "uid": "9fa5b3554fecf87e92b850135f73ace798395c1932d7a1a40e282ad3efac9c9a"
          },
          "created_at": 1442370220
          }
          }
          }
          }
        

POST /api/v1/user_profiles

         
        Request:
          {
          "user_profile": {
          "first_name": "Nathan",
          "last_name": "Gibson",
          "address1": "1234 Main St",
          "address2": "",
          "city": "Anytown",
          "state": "IA",
          "zip": "12345",
          "phone1": "555-555-5555",
          "phone2": "666-666-6666",
          "phone_type_1": "home",
          "phone_type_2": "office",
          "referer": "Friend"
          }
          }
          }

        
         
        Response: {
          "user_profile": {
          "first_name": "Nathan",
          "last_name": "Gibson",
          "address1": "1234 Main St",
          "address2": "",
          "city": "Anytown",
          "state": "IA",
          "zip": "12345",
          "phone1": "555-555-5555",
          "phone2": "666-666-6666",
          "phone_type_1": "home",
          "phone_type_2": "office",
          "referer": "Friend"
          }
          }
          }

GET /api/v1/bids

         
        Request: {}
           
            
         
        Response:
        {
          "bids": [
          {
          "id": 1,
          "bidder_first": "Nathan",
          "bidder_last": "Gibson",
          "title": "I will mow your lawn",
          "price": "9999.99",
          "notes": "I am ready to mow your lawn",
          "job_id": 1
          },
          {
          "id": 6,
          "bidder_first": "Nathan",
          "bidder_last": "Gibson",
          "title": "Fix Sink",
          "price": "999.55",
          "notes": "I can fix your sink",
          "job_id": 3
          }
          ]
          }