Reverse proxy https to http #3

Merged
bilal.catic merged 2 commits from reverse-proxy-https-to-http into master 2018-07-19 14:37:09 +02:00
bilal.catic commented 2018-07-16 11:12:13 +02:00 (Migrated from gitlab.com)

Removed self signed cert from container

smoke test : use postman to create order and to read orders

  1. Get orders (there is one order right now)
    GET https://next.wiaas.saburly.com/api/wp-json/wc/v2/orders
    Authorization : Basic Auth, username = Client key, password = client secret

  2. Create order
    POST https://next.wiaas.saburly.com/api/wp-json/wc/v2/orders
    Same authorization

Body content :

{
"payment_method": "bacs",
"payment_method_title": "Direct Bank Transfer",
"set_paid": true,
"billing": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US",
"email": "john.doe@example.com",
"phone": "(555) 555-5555"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "San Francisco",
"state": "CA",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"product_id": 93,
"quantity": 2
},
{
"product_id": 22,
"variation_id": 23,
"quantity": 1
}
]
}

  1. Try again to get orders, result should have two orders (you don't say :D )
Removed self signed cert from container smoke test : use postman to create order and to read orders 1) Get orders (there is one order right now) GET https://next.wiaas.saburly.com/api/wp-json/wc/v2/orders Authorization : Basic Auth, username = Client key, password = client secret 2) Create order POST https://next.wiaas.saburly.com/api/wp-json/wc/v2/orders Same authorization Body content : { "payment_method": "bacs", "payment_method_title": "Direct Bank Transfer", "set_paid": true, "billing": { "first_name": "John", "last_name": "Doe", "address_1": "969 Market", "address_2": "", "city": "San Francisco", "state": "CA", "postcode": "94103", "country": "US", "email": "john.doe@example.com", "phone": "(555) 555-5555" }, "shipping": { "first_name": "John", "last_name": "Doe", "address_1": "969 Market", "address_2": "", "city": "San Francisco", "state": "CA", "postcode": "94103", "country": "US" }, "line_items": [ { "product_id": 93, "quantity": 2 }, { "product_id": 22, "variation_id": 23, "quantity": 1 } ] } 3) Try again to get orders, result should have two orders (you don't say :D )
bilal.catic commented 2018-07-16 11:50:21 +02:00 (Migrated from gitlab.com)

changed the description

changed the description
nedimu commented 2018-07-19 14:37:09 +02:00 (Migrated from gitlab.com)

merged

merged
nedimu commented 2018-07-19 14:37:11 +02:00 (Migrated from gitlab.com)

mentioned in commit 03963d6056

mentioned in commit 03963d6056ab70fc27ed0ed47c35091e1b8b45fb
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: senaduka/old-new-wiaas#3