######################### Warehouses ######################### GET Catálogo de almacenes ************************* Obtiene listado de almacenes .. include:: /peticion.rst Recursos URL ============ .. http:get:: HOST/v1/catalogs/warehouses/ :reqheader Authorization: Token del usuario. :query string status: Estatus del registro **1** = Activo **0** = Inactivo. :statuscode 200: Ningún error. :statuscode 400: Algún parámetro es incorrecto. :statuscode 401: Token no válido o no enviado. :statuscode 500: Error interno. **Arreglo de almacenes** :>json int id: ID del almacén. :>json string name: Nombre del almacén. :>json string address: Dirección postal del almacén. :>json string neighborhood: Colonia. :>json string zipcode: Código Postal. :>json string city: Ciudad. :>json string state: Estado. :>json string country: País. :>json string status: Estatus del registro **1** Activo **0** Inactivo. Ejemplo de petición =================== .. sourcecode:: http GET HOST/v1/catalogs/warehouses/ HTTP/1.1 Host: api.next-cloud.mx Accept: application/json Authorization: Token (token del usuario) .. sourcecode:: http HTTP/1.1 200 OK Vary: Accept Content-Type: application/json Allow: GET, OPTIONS .. literalinclude:: example_warehouses_01.json :language: json Ejemplo de petición (estado = 1) ================================ .. sourcecode:: http GET HOST/v1/catalogs/warehouses/?status=1 HTTP/1.1 Host: api.next-cloud.mx Accept: application/json Authorization: Token (token del usuario) Ejemplo de respuesta ==================== .. sourcecode:: http HTTP/1.1 200 OK Vary: Accept Content-Type: application/json Allow: GET, OPTIONS .. literalinclude:: example_warehouses_02.json :language: json