Back

Update trailing url for endpoint

  • 0
  • Self Hosted
  • General
  • REST API
Saurabh
9 Feb, 2024, 16:48

I am new to appwrite, I want to update my endpoint, either remove v1 or change it to something else from trailing url

example From: http://your_hosntame/v1/ To: http://your_hosntame/something

Can anyone share with me how to do it or provide me any documentation for it?

TL;DR
Developers are trying to update the trailing URL for an endpoint in Appwrite. They want to either remove or change the version from the URL. However, it is not possible to do so in Appwrite. The purpose of having the version in the URL is to allow for future changes if needed. There is no documentation or solution available for this request.
Steven
9 Feb, 2024, 16:50

short answer is no, you cant, but why do you need to do something like this?

Steven
9 Feb, 2024, 16:50

the reason why we have that /v1 is to allow for changing the version if needed down the line

Saurabh
9 Feb, 2024, 16:51

Okay so how can we change the version from /v1 to /v2?

Steven
9 Feb, 2024, 16:51

We don't have a v2 yet.

Again, why do you need to do this?

Saurabh
9 Feb, 2024, 16:52

I just want to version my APIs, as I update the code.

Steven
9 Feb, 2024, 16:52

your code? what do you mean?

Saurabh
9 Feb, 2024, 16:53

I mean whenever we put new functionality in future I want to update the app version and same needs to be reflect to url.

Steven
9 Feb, 2024, 16:53

whenever we put new functionality in future

What do you mean? Are you modifying the appwrite source code to add custom stuff?

Saurabh
9 Feb, 2024, 16:57

No, not appwrite source code, anyway leave it. I just needed to update the url as we progress with our app.

Like, I have 2 different instances of appwrite operating on the same domain name, I just want few api to be call from one instance and few other apis from other instance.

Steven
9 Feb, 2024, 16:57

i would not put multiple instances of appwrite on the same domain. I'd use different domains

Saurabh
9 Feb, 2024, 16:58

Or consider the use case as "API versioning"

"API versioning is the process of managing and tracking changes to an API. It also involves communicating those changes to the API's consumers. Change is a natural part of API development."

Saurabh
9 Feb, 2024, 16:59

Anyway if that is something Appwrite cannot do then just leave it. Not so important as of now. Just was looking if that is possible.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more