Last active
November 8, 2019 12:52
-
-
Save edo9k/92bbb6a0e3768e8889de6d16feb55710 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST \ | |
http://localhost:3000/v1/publications \ | |
-H 'Accept: */*' \ | |
-H 'Accept-Encoding: gzip, deflate' \ | |
-H 'Cache-Control: no-cache' \ | |
-H 'Connection: keep-alive' \ | |
-H 'Content-Length: 52540' \ | |
-H 'Content-Type: application/json' \ | |
-H 'Cookie: connect.sid=s%3AWndZpVoG6i3yjJPdHG-Rz25xDLHE8Yxf.qkx3sfEOA%2BncJXUNn85FxzFYWrS3KJAhIDMOzjcOeWw' \ | |
-H 'Host: localhost:3000' \ | |
-H 'Postman-Token: 8dc8f74d-56e0-41cb-a569-e59686362eea,d11b9108-8421-41d5-9278-b17a0ad96133' \ | |
-H 'User-Agent: PostmanRuntime/7.19.0' \ | |
-H 'cache-control: no-cache' \ | |
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \ | |
-H 'x-access-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjoiZmU0MjBlZDMtM2RiZC00ZjA4LWJjZTQtZTRjYzIwY2NkYjhiIiwiaWF0IjoxNTczMjE2ODMxLCJleHAiOjE1NzMyMzg0MzF9.wyhTpElUsvlvSzthJ3ctLyWDs7U0n3HRZYsjByW55Bw' \ | |
-F publicationType_id=480146ec-1215-4112-9250-65c6e8f449e1 \ | |
-F selectiveProcess_id=74914b59-a571-4d12-b665-a575bd8e34cb \ | |
-F 'title=esse é o titulo da publicacao' \ | |
-F 'description=publicação teste 2 com upload de pdf' \ | |
-F 'file=@/home/edo9k/Área de Trabalho/curso-introducao-a-poo-10h.pdf' \ | |
-F valid=true \ | |
-F 'date=2019-09-11 00:00:00' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment