Closed jg77merten closed 10 years ago
----GET ADDRESS BY ADDRESS_ID--- GET http://fitmoostore.loc/fit_store/address/5 Cookie: SESSb22f1e1c07a26da425a441410bf4eb41=Ihi5Kw8YnUTsqh4pbnfZlqOk4SpIPHxlrDYSV0cHSeQ X-CSRF-Token: R7Js8of0WYiRXApjt60gUYo_ippFPSL7LI0hPtNnooY -- response -- {"revision_id":"5","revision_uid":"1","status":"1","log":"","revision_timestamp":"1396054160","data":false,"profile_id":"5","type":"shipping","uid":"1","created":"1393455516","changed":"1396054160","commerce_customer_address":{"und":[{"country":"US","administrative_area":"CA","sub_administrative_area":null,"locality":"Solana Beach","dependent_locality":null,"postal_code":"92075","thoroughfare":"410 N Rios","premise":"","sub_premise":null,"organisation_name":null,"name_line":"George Plsek","first_name":"George","last_name":"Plsek","data":null}]},"rdf_mapping":[]}
---GET USERS ADRESSES LIST-- GET http://fitmoostore.loc/fit_store/address Cookie: SESSb22f1e1c07a26da425a441410bf4eb41=Ihi5Kw8YnUTsqh4pbnfZlqOk4SpIPHxlrDYSV0cHSeQ X-CSRF-Token: R7Js8of0WYiRXApjt60gUYo_ippFPSL7LI0hPtNnooY --RESPONSE-- {ARRAY OF ADRESSES_LIST}
---UPDATE ADRESS BY ID-- PUT http://fitmoostore.loc/fit_store/address/23 Cookie: SESSb22f1e1c07a26da425a441410bf4eb41=Ihi5Kw8YnUTsqh4pbnfZlqOk4SpIPHxlrDYSV0cHSeQ X-CSRF-Token: R7Js8of0WYiRXApjt60gUYo_ippFPSL7LI0hPtNnooY Content-Type: application/json { "country":"US", "type":"shipping", "administrative_area":"NY", "sub_administrative_area":null, "locality":"Farmingdale", "dependent_locality":null, "postal_code":"12325", "thoroughfare":"3322 Neck Road", "premise":"#12221", "sub_premise":null, "organisation_name":null, "name_line":"MAasdsad Klasdsadhuk", "first_name":"MAasdsad", "last_name":"Klsadsadd", "data":null }
-- response --
{"revision_id":"23","revision_uid":"1","status":"1","revision_timestamp":1396609350,"data":false,"profile_id":"23","type":"shipping","uid":"1","created":"1396607655","changed":1396609350,"commerce_customer_address":{"und":[{"country":"US","administrative_area":"NY","sub_administrative_area":null,"locality":"Farmingdale","dependent_locality":null,"postal_code":"12325","thoroughfare":"3322 Neck Road","premise":"#12221","sub_premise":null,"organisation_name":null,"name_line":"MAasdsad Klasdsadhuk","first_name":"MAasdsad","last_name":"Klasdsadhuk","data":null}]},"rdf_mapping":[]}
---CREATE NEW ADRESS--- POST http://fitmoostore.loc/fit_store/address Cookie: SESSb22f1e1c07a26da425a441410bf4eb41=Ihi5Kw8YnUTsqh4pbnfZlqOk4SpIPHxlrDYSV0cHSeQ X-CSRF-Token: R7Js8of0WYiRXApjt60gUYo_ippFPSL7LI0hPtNnooY Content-Type: application/json { "country":"US", "type":"shipping", <-----SHIPPING OR BILLING "administrative_area":"NY", "sub_administrative_area":null, "locality":"Farmingdale", "dependent_locality":null, "postal_code":"12325", "thoroughfare":"321322 Great Neck Road", "premise":"#135841", "sub_premise":null, "organisation_name":null, "name_line":"MAasdsad Klimchuk", "first_name":"MAxasdsad", "last_name":"Klimcasdsd", "data":null }
-- response --
{"type":"shipping","uid":"1","profile_id":"23","revision_id":"23","status":1,"created":1396607655,"changed":1396607655,"commerce_customer_address":{"und":[{"country":"US","administrative_area":"NY","sub_administrative_area":null,"locality":"Farmingdale","dependent_locality":null,"postal_code":"12325","thoroughfare":"321322 Great Neck Road","premise":"#135841","sub_premise":null,"organisation_name":null,"name_line":"MAasdsad Klimchuk","first_name":"MAasdsad","last_name":"Klimchuk","data":null}]},"revision_uid":"1","revision_timestamp":1396607655,"log":""}