OGWUGO API DOCUMENTATION

  1. Home
  2. Docs
  3. OGWUGO API DOCUMENTATION
  4. Main Server Documentation
  5. User Address CRUD

User Address CRUD

Authentication :  Required

Method: GET

  1. LIST USER ADDRESSes

path:

/address/list/{user_id}

RESPONSE? register a user in the demo api, retrieve the address to see the response, cool?

2. GET SINGLE ADRESS DETAIL

path:

/address/user/{address_id}?user={user_id}

3.  CREATE AN ADDRESS 

method: POST

/address/create

PARAMETERS

DataType [default] Detail
user_id int. req
address str. reg
phone str. reg
latitude str. reg
longitude str. reg
city int. reg
name str. reg


4.  Update Address

method : POST

address/update/[address_id]

Post all detail as seen in create Address, you cannot edit city or state so do not bother posting new one.
If city or state must be edited, kindly delete such address and create new one.

 

5.  DELETE ADDRESS

method: POST

/address/delete/[address_id]

PARAMETERS: user_id, address_id

Was this article helpful to you? Yes No

How can we help?