Closed that1guy closed 9 years ago
Will do! For the POST on accept, you'll need to supply a JSON payload in the body that has acceptedTime as a field. I'll make sure the doc has an example request.
Sent from my iPhone
On Feb 21, 2015, at 7:25 PM, Brad Davis notifications@github.com wrote:
Hi Josh,
In the documentation @ http://localhost:4043/v1/docs can I request we have url examples like the ones you send me via email.
I'm struggling right now to send POST request that accepts an offer.
- v1/postings/87e8462c658144ae98e56ad456b420c4/offers/54e944ce3749367de0ca9be8/accept returns
{ "name": "RequiredFieldMissingError", "message": "acceptedTime is required", "statusCode": 409 } Trying to add when time with and without bracket notation:
- v1/postings/87e8462c658144ae98e56ad456b420c4/offers/54e944ce3749367de0ca9be8/accept?when=2015-02-11T17:30:00.000Z
- v1/postings/87e8462c658144ae98e56ad456b420c4/offers/54e944ce3749367de0ca9be8/accept?[when]=2015-02-11T17:30:00.000Z returns
{ "message": "internal server error" } url examples would be killer! Thanks!
— Reply to this email directly or view it on GitHub.
Ah.. stupid of me. Thanks for clarification!
HashtagSell.com p: 415.294.1981 e: brad.davis@hashtagsell.com
On Sun, Feb 22, 2015 at 2:08 PM, Joshua Thomas notifications@github.com wrote:
Will do! For the POST on accept, you'll need to supply a JSON payload in the body that has acceptedTime as a field. I'll make sure the doc has an example request.
Sent from my iPhone
On Feb 21, 2015, at 7:25 PM, Brad Davis notifications@github.com wrote:
Hi Josh,
In the documentation @ http://localhost:4043/v1/docs can I request we have url examples like the ones you send me via email.
I'm struggling right now to send POST request that accepts an offer.
v1/postings/87e8462c658144ae98e56ad456b420c4/offers/54e944ce3749367de0ca9be8/accept returns
{ "name": "RequiredFieldMissingError", "message": "acceptedTime is required", "statusCode": 409 } Trying to add when time with and without bracket notation:
v1/postings/87e8462c658144ae98e56ad456b420c4/offers/54e944ce3749367de0ca9be8/accept?when=2015-02-11T17:30:00.000Z
v1/postings/87e8462c658144ae98e56ad456b420c4/offers/54e944ce3749367de0ca9be8/accept?[when]=2015-02-11T17:30:00.000Z returns
{ "message": "internal server error" } url examples would be killer! Thanks!
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/HashtagSell/posting-api/issues/14#issuecomment-75466040 .
Verifying documentation: https://github.com/HashtagSell/posting-api/blob/develop/v1.apibp.md#accept-an-offer-post
Hi Josh,
In the documentation @ http://localhost:4043/v1/docs can I request we have url examples like the ones you send me via email.
I'm struggling right now to send POST request that accepts an offer.
returns
Trying to add when time with and without bracket notation:
returns
url examples would be killer! Thanks!