0

We have an internal API that is specifically for our website and internal applications, and we are planning to release a public api exposing some of the endpoints in our internal API.

We are using semantic versioning and our internal API is at version 6, would it make sense to just create a new project and start at version 1?

asked Nov 21, 2015 at 0:48

1 Answer 1

3

Since you said "some" of the endpoints, that means the internal API and the public API are already meaningfully different interfaces, in addition to having completely different user bases. Therefore, it's entirely possible that one may need to change in ways that should not have any effect on the other. So yes, it makes perfect sense to use separate version numbers for each API.

Just make sure that the way you expose these endpoints is sufficiently flexible that you will be able to make changes to the public API or the internal API without affecting the other, if you so choose. And you should have two completely distinct "public API declarations" (whether that means header files or API documentation or something else for your project).

answered Nov 21, 2015 at 1:43

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.