ajout config postman

main
Gil Portenseigne 2024-09-18 10:08:28 +02:00
parent 9a95860c62
commit c6a1db9b80
18 changed files with 344 additions and 0 deletions

View File

@ -0,0 +1,13 @@
```toml
name = 'Test get order header'
description = '/component/v1/orders/R67658A8872/header'
method = 'GET'
url = 'https://localhost:8443/component/v1/orders/R67658A8872/header'
sortWeight = 11000000
id = 'a28a4e88-36c0-49a3-9f8e-0c4ac84d0d25'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
```

View File

@ -0,0 +1,13 @@
```toml
name = 'Test get order'
description = '/component/v1/orders/R60055A3541'
method = 'GET'
url = 'https://localhost:8443/component/v1/orders/R60055A3541'
sortWeight = 10000000
id = '463bc4dd-b4fb-4ac5-9191-202a257f6722'
[[headers]]
key = 'x-api-key'
value = '{{x-api-key}}'
description = 'api key de test pp'
```

View File

@ -0,0 +1,25 @@
```toml
name = 'Test get orders'
description = '/component/v1/orders'
method = 'GET'
url = 'https://localhost:8443/component/v1/orders?date=2022-10-01 10:00&range=0-99&cnuf_code=60055'
sortWeight = 9000000
id = 'e8de90fc-afbd-4262-91a7-2b0021c877d0'
[[queryParams]]
key = 'date'
value = '2022-10-01 10:00'
[[queryParams]]
key = 'range'
value = '0-99'
[[queryParams]]
key = 'cnuf_code'
value = '60055'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'ID Gil de test rfid'
```

View File

@ -0,0 +1,48 @@
```toml
name = 'Test inquiry creation'
description = '/component/v1/orders/inquiries/component/creation'
method = 'POST'
url = 'https://{{host}}/component/v1/orders/inquiries/component/creation'
sortWeight = 2000000
id = '5566f5f0-c5b3-4d74-8060-768df06e3ab0'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
[body]
type = 'JSON'
raw = '''
{
"vendor_cnuf": "60055",
"vendor_dpp_code": "2403",
"currency": "CNY",
"header": {
"internal_code": "FDC1022934",
"note": "This is a comment",
"billing_address_code": "463344",
"shipping_address_code": "479020",
"requested_ship_date": "2023-01-25"
},
"lines": [
{
"component_reference": "4749108",
"quantity": 1,
"conception_code": "code cc",
"provider_cnuf": "P4577",
"incoterm": "DDP",
"shipment_method": "NO_SHIPPING",
"comment": "This is a comment",
"extra_feature": [
{
"key": "Size",
"value": "iron"
}
]
}
]
}
'''
```

View File

@ -0,0 +1,13 @@
```toml
name = 'Test inquiry status'
description = '/component/v1/orders/inquiries/21371'
method = 'GET'
url = 'https://localhost:8443/component/v1/orders/inquiries/21371'
sortWeight = 3000000
id = 'ab4d649c-54f5-4d11-a49e-55575ddaab36'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
```

View File

@ -0,0 +1,24 @@
```toml
name = 'Test order header update'
description = '/component/v1/orders/R60055A4077'
method = 'POST'
url = 'https://localhost:8443/component/v1/orders/R60055A4077'
sortWeight = 4000000
id = '6a66253a-fcc7-40e8-a723-1c4a63f50c71'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
[body]
type = 'JSON'
raw = '''
{
"internal_code": "TOTO",
"note": "This is a test",
"billing_address_code": "463344",
"shipping_address_code": "471004",
"requested_ship_date": "2022-12-01"
}'''
```

View File

@ -0,0 +1,33 @@
```toml
name = 'Test order line add'
description = '/component/v1/orders/R60055A4079/lines'
method = 'POST'
url = 'https://localhost:8443/component/v1/orders/R60055A4079/lines'
sortWeight = 5000000
id = 'f4500229-efef-4af8-9a1a-a00e1240e7fb'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
[body]
type = 'JSON'
raw = '''
{
"component_reference": "4749108",
"finished_good_item_code": null,
"quantity":1,
"conception_code": "code cc",
"provider_cnuf": "P4577",
"incoterm": "DDP",
"shipment_method": "NO_SHIPPING",
"comment": "This is a comment",
"extra_feature": [
{
"key": "size",
"value": "iron"
}
]
}'''
```

View File

@ -0,0 +1,13 @@
```toml
name = 'Test order line delete'
description = '/component/v1/orders/R60055A4074/lines/3'
method = 'DELETE'
url = 'https://localhost:8443/component/v1/orders/R60055A4074/lines/3'
sortWeight = 7000000
id = '51eb08d5-1b46-4690-b73a-5bb67d66de54'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
```

View File

@ -0,0 +1,23 @@
```toml
name = 'Test order line update'
description = '/component/v1/orders/R60055A4079/lines/2'
method = 'POST'
url = 'https://localhost:8443/component/v1/orders/R60055A4079/lines/2'
sortWeight = 6000000
id = 'e18cc95e-bb6c-4cc9-ba5e-2293075aae80'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
[body]
type = 'JSON'
raw = '''
{
"quantity": 1,
"conception_code": "code cc",
"comment": "This is a comment",
"shipment_method": "NO_SHIPPING"
}'''
```

View File

@ -0,0 +1,13 @@
```toml
name = 'Test order lines'
description = '/component/v1/orders/R45219A1248/lines'
method = 'GET'
url = 'https://localhost:8443/component/v1/orders/R45219A1248/lines'
sortWeight = 12000000
id = 'c164bdff-3376-4cc0-ad15-b5863a51adf6'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
```

View File

@ -0,0 +1,13 @@
```toml
name = 'Test order shipments'
description = '/component/v1/orders/R45219A1248/shipments'
method = 'GET'
url = 'https://localhost:8443/component/v1/orders/R45219A1248/shipments'
sortWeight = 13000000
id = '84ef586d-5968-470c-847b-ec6dfac1142a'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
```

View File

@ -0,0 +1,13 @@
```toml
name = 'Test order validation'
description = '/component/v1/orders/R45226E43/validation'
method = 'POST'
url = 'https://localhost:8443/component/v1/orders/R45226E43/validation'
sortWeight = 8000000
id = 'b031aebe-3b73-4d91-83eb-57c1405055a7'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
```

View File

@ -0,0 +1,13 @@
```toml
name = 'Test vendor address'
description = '/component/v1/vendors/60055/addresses/479020'
method = 'GET'
url = 'https://localhost:8443/component/v1/vendors/60055/addresses/479020'
sortWeight = 14000000
id = '2ba47896-0808-4a2f-a913-97a543c4739a'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
```

View File

@ -0,0 +1,17 @@
```toml
name = 'Test vendor addresses'
description = '/component/v1/vendors/60055/addresses'
method = 'GET'
url = 'https://localhost:8443/component/v1/vendors/60055/addresses?type=shipping'
sortWeight = 15000000
id = '37791bdb-6a93-4cb4-b49d-157fbd389967'
[[queryParams]]
key = 'type'
value = 'shipping'
[[headers]]
key = 'x-api-key'
value = '2ae687c5-e901-498a-ab78-225b0586d06d'
description = 'api key de test pp'
```

View File

@ -0,0 +1,6 @@
```toml
name = 'API ERP'
description = '/component/v1/'
sortWeight = 1000000
id = '177fc1e5-10f9-4507-8790-6b9773ef85b2'
```

View File

@ -0,0 +1,13 @@
```toml
name = 'health ping'
description = '/component/v1/health/ping'
method = 'GET'
url = 'https://{{host}}/component/v1/health/ping'
sortWeight = 1000000
id = '681a2e78-9f8b-4703-b85a-41c0197eb27e'
[[headers]]
key = 'X-Api-Key'
value = '{{x-api-key}}'
description = 'api key de test pp'
```

View File

@ -0,0 +1,15 @@
```toml
name = 'Pre-production'
sortWeight = 1000000
id = '3bf11114-91fa-4482-a9eb-67f6b138c1a0'
[auth.oauth2]
grantType = 'CLIENT_CREDENTIALS'
tokenUrl = '{{url}}'
callbackUrl = ''
clientId = '{{user}}'
clientSecret = '{{secret}}'
codeChallengeMethod = 'PLAIN'
autoRefreshToken = false
authorizeUsingBrowser = false
```

View File

@ -0,0 +1,36 @@
```toml
name = 'LocalhostRank2'
id = '72131080-0449-43c5-b749-c8f0458909f8'
[[environmentGroups]]
name = 'Default'
environments = ['preprod', 'prod', 'localhost']
```
#### Variables
```json5
{
preprod: {
"x-api-key": "e343ce06-bd07-449b-af90-ccf7abad7edb",
"host": "api.preprod.decathlon.net",
"url": "https://preprod.idpdecathlon.oxylane.com/as/token.oauth2",
"user": "C196d7bc0c8bae220f74b8eb55da803813386f57a",
"secret": "pass Nrd/Projet/decathlon/apis/connexion\ Clients\ credentials\ PP -c"
},
localhost: {
"x-api-key": "e343ce06-bd07-449b-af90-ccf7abad7edb",
"host": "localhost:8443",
"url": "https://preprod.idpdecathlon.oxylane.com/as/token.oauth2",
"user": "C196d7bc0c8bae220f74b8eb55da803813386f57a",
"secret": "pass Nrd/Projet/decathlon/apis/connexion\ Clients\ credentials\ PP -c"
},
prod: {
"x-api-key": "fee52be2-4de1-4165-ab4e-716ea4738d06",
"host": "api.prod.decathlon.net",
"url": "https://idpdecathlon.oxylane.com/as/token.oauth2",
"user": "C3916a726322bfcabce75e6b0f4eb47f48e3fdc61",
"secret": "pass -c Nrd/Projet/decathlon/apis/connexion\ Clients\ credentials\ Prod"
}
}
```