How to tackle designing abstractions for an api that sends and receives unstructured data?
up vote
-2
down vote
favorite
I am currently working with an api that basically acts as an interface between the developer and many different databases. The database exposes multiple sources of data and different types of data .The api only exposes one endpoint with the ability to receive json describing the data you want back. How would you go about designing the abstraction to be used in code. Would you create a class to represent the client and one to represent this query, and then the query is given to the client....Or maybe just write a method that takes json and returns whatever is given back?
api oop design-patterns abstraction
add a comment |
up vote
-2
down vote
favorite
I am currently working with an api that basically acts as an interface between the developer and many different databases. The database exposes multiple sources of data and different types of data .The api only exposes one endpoint with the ability to receive json describing the data you want back. How would you go about designing the abstraction to be used in code. Would you create a class to represent the client and one to represent this query, and then the query is given to the client....Or maybe just write a method that takes json and returns whatever is given back?
api oop design-patterns abstraction
The question is way to vague to be answered.
– plalx
Nov 8 at 20:17
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I am currently working with an api that basically acts as an interface between the developer and many different databases. The database exposes multiple sources of data and different types of data .The api only exposes one endpoint with the ability to receive json describing the data you want back. How would you go about designing the abstraction to be used in code. Would you create a class to represent the client and one to represent this query, and then the query is given to the client....Or maybe just write a method that takes json and returns whatever is given back?
api oop design-patterns abstraction
I am currently working with an api that basically acts as an interface between the developer and many different databases. The database exposes multiple sources of data and different types of data .The api only exposes one endpoint with the ability to receive json describing the data you want back. How would you go about designing the abstraction to be used in code. Would you create a class to represent the client and one to represent this query, and then the query is given to the client....Or maybe just write a method that takes json and returns whatever is given back?
api oop design-patterns abstraction
api oop design-patterns abstraction
asked Nov 8 at 19:56
user3643162
93
93
The question is way to vague to be answered.
– plalx
Nov 8 at 20:17
add a comment |
The question is way to vague to be answered.
– plalx
Nov 8 at 20:17
The question is way to vague to be answered.
– plalx
Nov 8 at 20:17
The question is way to vague to be answered.
– plalx
Nov 8 at 20:17
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53215223%2fhow-to-tackle-designing-abstractions-for-an-api-that-sends-and-receives-unstruct%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The question is way to vague to be answered.
– plalx
Nov 8 at 20:17