Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
2 answers
801 views

Should a client / server share error codes?

I am in two minds about sharing client / server errors codes. We are writing both ends of the system, if our API was external this would not be possible, but that requirement is very unlikely. So an ...
dendog's user avatar
  • 201
0 votes
0 answers
60 views

How to validate against changes to "illegal paths" in backend requests for complex data structures?

We are building a backoffice web application where people are making changes to an array of nested objects. Because of totally non relevant business reasons there are things that users cannot change ...
atoth's user avatar
  • 539
0 votes
1 answer
328 views

Sending multiple calls from angular application

I am working in Angular project which is connected to REST API. Here we have an endpoint to create and update room types. POST endpoint for create and PUT endpoint for update exiting room types. Both ...
Nuwan's user avatar
  • 1
1 vote
5 answers
5k views

What should the result be of a failing parseInt function?

When providing JavaScript's parseInt with a non-parsable string it returns NaN. I'm trying to understand the reasons for designing a parsing function this way. When I write a parsing function I ...
Duncan Lukkenaer's user avatar
0 votes
2 answers
76 views

Setting custom callbacks in a Javascript applet?

I'm designing a 3D visualisation applet in Javascript. When used, a Canvas will be created and placed inside an HTML element on a webpage, specified by the developer who is implementing the applet. ...
Okarin's user avatar
  • 109
2 votes
3 answers
356 views

Good ways to prevent client side logic duplication without HATEOAS?

I know HATEOAS can be a bit of a heated topic. Some people like it, some people don't. That is not what I want to discuss. What I want to discuss is what technology other than HATEOAS (or some form of ...
S. ten Brinke's user avatar
0 votes
0 answers
64 views

Ist good practice adding Converter Between api and client

I just want to curious about adding a converter is a good practice or not. I have multiple API and I always convert API return fields to my client fields. Like=> function ConvertFromAPI(apidata){ ...
Loran's user avatar
  • 101
0 votes
1 answer
33 views

Contemplating about API design of a typescript/nodejs library for querying a remote storage service

I am working on a Typescript library (to be used by many users within my org, possibly open-sourced) which provides access to some remote storage. I am contemplating between several variants for the ...
Itay's user avatar
  • 117
0 votes
2 answers
101 views

Check or not objects in a Javascript API?

I'm writing an API in JavaScript, and I'm confused whether or not I should check if the API user is passing me the correct type on which the API expects to work. Actually not the type, but if you are ...
PerduGames's user avatar
2 votes
2 answers
375 views

An options parameter vs chained functions for object initialization?

What concrete objective advantages do chained functions have vs an options parameter for object initialization? What do I mean? Well as one example there's a library called dat.GUI that uses the ...
gman's user avatar
  • 532
3 votes
3 answers
3k views

REST Api - Check if Action is allowed for entity

I'm asking this question for a colleague since he doesn't have enough reputation to post images in a question During our normal development we found a deficit in our REST Api. We display entities in ...
Nico's user avatar
  • 139
4 votes
2 answers
1k views

REST Api Design Patterns

I'm developing a REST Api using Node.js & Express.js. Recently I've started looking towards best practices for REST Api design but it's bit confusing so please bear with me. For Example: Lets ...
Lorenzo von Matterhorn's user avatar
1 vote
1 answer
247 views

how to create API's from mere programming language

all programming languages have api's to interact various systems as a example javascript languge has Dom api to interact with the web page. C language languge has file access api to interact with ...
Susantha7's user avatar
  • 406
0 votes
1 answer
90 views

Framework accepts Promises or executor functions

When designing a framework API is it better to have something that accepts Promises or have executor functions and have the framework build the promises when needed. The Promise API is defined by ...
Archimedes Trajano's user avatar
1 vote
0 answers
78 views

How do I write an API that makes use of many smaller APIs?

I have a solid set of classes that do the following build tables from data and templates advanced form serialization build forms from data and templates launch overlays with forms/wizards short poll ...
Tester232323's user avatar

15 30 50 per page