-1
The API is working properly with google smtp, rescuing data from a page form and sending the email (tested by Postman and running locally), the only problem is that I am not able to publish, I have the access data to the ftp server where the site is published, the website is hosted at Locaweb. I am a beginner in the area and would like your help if it is necessary more information (codes) to clarify my question, please comment. Thank you in advance, thank you very much!
Note: I used Microsoft Visual Studio IDE and used ASP.NET(. NET Framework).
Publication process:
Step 1 - In Visual Studio
Step 2 - I am posting the API in a local folder
Step 3 - With Filezilla I transferred the files to the ftp server (where the site is already published) in a separate folder I called api
Step 4 - My question is which URL to use in Postman to test it
Would it be/api/Sendmail(controller name)? because this way is giving error 404 not found
Once again I thank you for your patience.
Look... you gave away all the unnecessary information and none needed. You did not enter any data about the framework used, about the.host server, publishing process, errors, ..., ...
– tvdias
I will edit the publication, try to clarify with images of the publishing process and the hosting server is Locaweb.
– Igor Bezerra
"the only problem is that I am not able to publish" what does that mean? can connect to the server and upload the files there?
– Ricardo Pontual
Yes Ricardo Pontual, I can access the server and upload files, but unfortunately I do not know how to publish the Api there and in case which URL to use to work the same.
– Igor Bezerra
And what is the version of the framework? What are the characteristics of the server?
– tvdias
vc said the site already exists, so just publish locally and copy the files to the server
– Marceloawq
Hi Marceloawq, blz? So I did just that, the site already exists and is in the air, I posted the api locally in a folder and transferred the files of the same on the ftp server in a separate folder that I created and called api, but I’m not sure which way (Urlbase) use to make use of the API in a javascript file where the API is being consumed by Ajax. Could you explain this to me? The responses of the staff are making me more confused, because I am beginner in this area still. Thank you for your personal patience. I will do a new issue in the post to explain what I am doing so far.
– Igor Bezerra