What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

has anyone used RestApi versioning in Spryker?

U035GSLDLVD
U035GSLDLVD Posts: 90 🧑🏻‍🚀 - Cadet

has anyone used RestApi versioning in Spryker?

Comments

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 🪐 - Explorer

    @UKHR9UN00 Might be able to provide you a detailed answers how we implemented that for one of our projects.
    Out of the box it wasn't working for us.

  • U035GSLDLVD
    U035GSLDLVD Posts: 90 🧑🏻‍🚀 - Cadet

    I tried to implement it and new version is also accessible. Problem is, I can not access old version. For ex: I created version 2 and version 3 . By default it calls latest version which is correct as per the doc. but if I pass version 2.0 as header param, it still loads version 3 data. and if I pass version 4, which doesn't exist then it returns version 3 data instead of rendering 404.
    You had the same issue?

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 🪐 - Explorer

    I don't exactly remember the problems and do no longer have access to the project, but Felix still maintains it and will be able to answer this in more detail or even share the piece of code that it made work for us with you.
    I assume he will answer after the weekend, if you didn't receive an answer by mid of the next week give me a ping and I will take care of.

  • U035GSLDLVD
    U035GSLDLVD Posts: 90 🧑🏻‍🚀 - Cadet

    Thanks a lot Alberto!