Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9134561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:41:03+00:00 2026-06-17T08:41:03+00:00

Specifically, there is a JSON RPC API that I work with. The specification might

  • 0

Specifically, there is a JSON RPC API that I work with. The specification might change between the API’s versions, but I can always tell what version it is when I connect. I have about 30 wrappers methods that make use of the available JSON RPC methods.

Do you insert switch statements wherever you see changes in a way something should be called? Or write completely new methods to make it easier to manage, even if most of the API’s functions didn’t change and your code doesn’t have to change?

EDIT: I forgot to mention I want my code to work with multiple versions of this API, ie. I can’t just update my code to work with version 2.0 because I may want to use it on a different server that provides this service whose version is 1.8.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:41:04+00:00Added an answer on June 17, 2026 at 8:41 am

    I would hide the external API behind your own internal interfaces, and then have implementations that deal with the external API’s specific versions.

    In other words, add another layer between you and the external API.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Specifically in JAX-RS (I'm not sure that is relevant) there are methods that allow
Are there any compression algorithms -- lossy or lossless -- that have been specifically
I have seen there is no question that specifically reply to this combination of
I found a lot of similar questions out there but none that really answered
I'm currently looking into the Twitter-API - specifically the daily trends-API ( http://search.twitter.com/trends/current.json ).
I am developing a JSON/REST web API, for which I specifically want third party
Is there any mechanism that I can push data into a webbrowser control from
Im a newbie in PHP (also JSON for that matter) but I am not
Are there any libraries or tools specifically designed to help PHP programmers write Javascript?
Is there a guide/reference anyone would recommend to pick up C++ specifically if you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.