mirror of
https://github.com/gcatanese/adyen-openapi.git
synced 2026-03-10 08:01:24 +00:00
Trying POST Request
This commit is contained in:
15
.github/workflows/generatePostman.yml
vendored
15
.github/workflows/generatePostman.yml
vendored
@@ -14,5 +14,16 @@ jobs:
|
||||
run: |
|
||||
sed -i.bak "1s/.*/openapi: 3.0.3/" yaml/CheckoutService-v69.yaml
|
||||
rm yaml/CheckoutService-v69.yaml.bak
|
||||
/script.sh push -i yaml/CheckoutService-v69.yaml -o postman/CheckoutService-v69.postman --additional-properties postmanVariables=YOUR_MERCHANT_ACCOUNT-YOUR_MERCHANT_NAME-YOUR_DOMAIN_NAME-YOUR_MERCHANT_ID
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
/script.sh generate -i yaml/CheckoutService-v69.yaml -o postman/CheckoutService-v69.postman --additional-properties postmanVariables=YOUR_MERCHANT_ACCOUNT-YOUR_MERCHANT_NAME-YOUR_DOMAIN_NAME-YOUR_MERCHANT_ID
|
||||
- name: Set postman file to variable
|
||||
run: |
|
||||
FILE=$(cat postman/CheckoutService-v69.postman/postman.json)
|
||||
echo "FILE_CONTENTS=$FILE" >> $GITHUB_ENV
|
||||
- name: Push to POSTMAN
|
||||
uses: fjogeleit/http-request-action@v1
|
||||
with:
|
||||
url: 'https://api.getpostman.com/collections'
|
||||
method: 'POST'
|
||||
customHeaders: '{"Content-Type": "application/json", "X-API-Key": ${{ secrets.POSTMAN_API_KEY }} }'
|
||||
data: ${{ env.FILE_CONTENTS }}
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
|
||||
Reference in New Issue
Block a user