AppointmentTrader Logo Appointment Trader
Spanish (Beta)
Buy, Sell or Browse AT ✨   SignIn Sign In Developers Partners Partners
X Logo Instagram Logo
About AppointmentTrader
Back Button
Search AppointmentTrader
Cancel Search

Community Forum Overview

Share Button
Close
Important Information

Cancel
Important Information

OK
AppointmentTrader Logo Large
Back ButtonBack
Best Posts of Page Best Posts Discussions Reviews
AppointmentTrader Developers
Arrow Pointing DownMake ~/location/set_listing operate against HTTP POST
By 🥩 @FamousStation67, 06/25/2023 6:09 pm
Post Options
Share Post Report Post Delete Post
Report Post Cancel
Delete Post Cancel

I see the "set_listing" end-point is currently operating against an HTTP GET. This should be a POST end-point in my opinion, as we'll likely hit query string limits on the query string via a GET. Would you be open to making it a POST end-point?

Thread Views 22 viewsThumbs Up Action Icon0 thumbs up
Answer question "Make ~/location/set_listing operate against HTTP POST"
Upload Images
Sign In to Publish Post
Cancel
1 Answer

0 Comments

Give the best answer
Important Information

The best answer has not been selected yet.

Read More on Best Answers and Best PostsRead More Action Icon
The answer that receives the most,
but at least 3 Thumbs Up's from other users is selected as the best answer.

10 Posts of the entire Community with the most, but at least 5 Thumbs Up's will appear in the Best Posts of PageBest Posts section of .

Being in the Best Posts section comes with perks, the asking user and the person who answered will both receive Traderpoints for every paid AppointmentTrader transaction at .

Traderpoints can be used to pay for Transactions on AppointmentTrader.
Check out the AppointmentTrader Communities to learn how users convert Traderpoints to cash.
Read Less Read Less Action Icon
Answer from 🥷🏻 @ColorfulRod45 (06/30/2023 8:41 am)
Post Options
Share Post Report Post Delete Post
Report Post Cancel
Delete Post Cancel

Hey @FamousStation67, thank you for testing the first endpoint - and sorry for being so slow to respond, I don't know why I missed the thread.

For ease of access for new developers all requests are designed to be accessible with a simple get request (which does help some people who are more scripters than coders), with that in mind request have been designed to not exceed the GET parameter limit (files, for instance are passed in as a URL which is then retrieved from the API rather than expecting a multipart-form-data request which includes the file.)

That being said - your request is absoluty valid and who knows, there might be an edgecase which would exhaust GET limits - therefore the API can now be accessed with either a regular GET request or POST on all endpoints.

If a request is POST x-www-form-urlencoded keys are prioritized over provided GET keys.

Thank you for contributing!

Thumbs Up Action Icon0 Thumbs Up

Comment Icon
0 Comments
Comment
Post Comment Cancel