About 7,500,000 results
Open links in new tab
  1. How should REST API accept boolean values? - Stack Overflow

    Oct 11, 2016 · How should an API interpret boolean values? For instance: The true and false literals are just fine to represent boolean values. They are quite descriptive and, if your API …

  2. REST API design: best practices for returning Boolean values

    Feb 1, 2023 · Best practices for returning Boolean values in responses. We can improve on all the examples above by making two changes: Change the Boolean value to an Enumeration, that …

  3. java - What is the proper way to design a REST API that takes a boolean

    Nov 9, 2018 · Basically I have a rest API like this: /api/drive And it takes a body for PUT which is either "true" or "false". I'm using dropwizard framework with Java, and boolean drive is one of …

  4. How to Send a Boolean Value as a Request Parameter in API Calls?

    Sending boolean values as request parameters in API calls can help control the server's response based on the client's needs. This article explains the best practices for including boolean …

  5. REST - boolean parameters naming conventions - Stack Overflow

    Mar 22, 2018 · What are the standards for boolean parameters in REST which indicates whether or not certain parts of the response should be included. Should they be prefixed with "include" …

  6. Naming boolean parameters in your API - DEV Community

    Feb 1, 2025 · Developers love boolean parameters 😅. You may use names such as is_enabled , is_active , is_published , and many other variants in your API endpoints. It usually aims to filter …

  7. What's the convention to name a REST endpoint that returns a boolean?

    Apr 5, 2023 · It sounds like you are expecting the representation of /resource/1/valid to describe, in some way, information about the resource /resource/1. That's a perfectly normal sort of …

  8. Why you shouldn’t use booleans in REST APIs - Medium

    Jun 15, 2021 · When designing REST APIs, convenient decisions can negatively impact the evolution of our work. An example of this is using booleans in API contracts. If not carefully …

  9. boolean-parameter-prefixes

    Enforces specific and consistent naming for request parameters with boolean type. When this rule is enabled, the name fields of all boolean parameters in your API must contain one of the …

  10. JSON Boolean: Understanding and Implementing Boolean Values …

    Sep 24, 2024 · In JSON, a boolean value represents one of two states: true or false. These values are used to express binary conditions, such as whether a feature is enabled, if a user is …

Refresh