web-api POST body object always null
I'm still learning web API, so pardon me if my question sounds stupid.I have this in my StudentController:public HttpResponseMessage PostStudent([FromBody]Models.Student student){ if...
View ArticleIntellij IDEA REST Client file uploading
I am trying to upload file through Intellij IDEA REST Client. I choose "File to upload (multipart/form-data)" and choose file to send. What is parameter name of this file? In my Sprint Controller i use...
View ArticlePostman request returns 404 Not Found [closed]
I've created small Rest API app and tried to test it using Postman, but got nothing.That's pieces of code for:-Animalnamespace VeterinaryClinicShelter.Models;public class Animal{ public int Id { get;...
View ArticleHow to send a huge parameter list to a GET request
I have a REST API in my server, where the List operation (that should be implemented using the GET method) receives multiple parameters from the client:The current pageThe number of rowsA text for...
View ArticleStruggling with expandable nested recyclerview
Im working an app. It fetches lists(country and cities lists) from API using retrofit. On my main activity i have a rv which is the main rv and also displays the country list. my country list items...
View ArticlePUT request working using postman but not using java, spring boot
I am trying to make an API call in my Spring Boot project. The PUT request is working fine using postman and I am getting 204 status code(no-content). Whereas the JAVA code is throwing 500 internal...
View ArticleTalend upload file to SharePoint (graphAPI) document libraries , file types...
I have project, using Talend, where an oracle blob is decoded into a file.I need to 'PUT' the file into a SharePoint document library. i have all the drive id's etc tested in postman as well as putting...
View ArticleJersey REST get returns java.lang.NoSuchMethodError
I'm trying to get a response from a working REST webservice.I have come up with the following looking at the documentation:void postRest(){ Client client = ClientBuilder.newClient(); WebTarget...
View ArticleInsomnia REST Client - Set "Content-Type" for multipart/form-data
TL;DRHow can I set the Content-Type headers for each individual file/input/text in a multipart/form-data request (in Insomnia)?I'm trying to POST to the OneNote API (HTTP description) using the...
View Article"404Not Found" error when testing a Rest API by Postman
I have a very simple Rest API written with C#:namespace Test.Controllers{ [Route("api/[action]")] [ApiController] public class NewController : ControllerBase { [HttpGet] public bool stringCheck(string...
View ArticleUnable to set a value from 1 model to another using a "Put" method in Postman
I have already created a working register user method in which a user is registered to the database. I have also created a working new package method which creates a new package. They both work fine...
View ArticlePython API JAMA: Put attachment to item
I'm facing issues with API Jama to attach an attachment to an item.I need to automatise my jobs and use python to create items and attach zipfile to them.With the console I can create my attachment...
View ArticleValidate URL Parameters in an Openapi 3.0 Spring Boot RESTful API?
In my openapi spec I specify URL parameters for a specific resource path like so:paths: /some/path: get: summary: some summary parameters: name: usefulParameter description: schema: type: string...
View ArticleHow to return the error in JSON format instead of HTML in REST framework?
I want to make an error handler exception to return the error 404 instead of this html. how can i do this ?i tried the following code but it didn't work for mefrom rest_framework.views import...
View ArticleTurn off pluralisation for an endpoint in APi Platform
In a Symfony 5 project we're using the APi Platform to generate a REST API.One of the entity classes is called FarmMetadata.<?phpnamespace App\Entity;use ApiPlatform\Core\Annotation\ApiResource;use...
View ArticleHow to update a detached entity containing the ID with hibernate EntityManager?
I am developing a REST API with Quarkus and Hibernate. I now have to create an endpoint which accepts a PUT request to update an existing entity. The request contains the entire entity, with its...
View ArticleAccessing Microsoft.Graph API with Delphi Component(s) [closed]
We are migration our phone system from PBX to Microsoft Teams.Our CRM / BPM used TAPI to monitor call activity.Now, we need to use Microsoft.Graph API to make calls and monitor call activity.Although...
View ArticleTomcat restful web service database (JPA) with Netbeans does not work
I have been able to create Restful web services with JAX-RS for Tomcat. Using the Netbeans Restful web service from patterns wizard.But I am not able to create Restfull web servicer from database with...
View ArticleReturn a pretty error json for rest api
When an error occurs in my Java based rest web serviceI get the exception sent to the client like this type Exception reportmessage Invalid Tokendescription The server encountered an internal error...
View ArticlePayPal RestAPI Sample Returns 404 for PayPal Payment
I am new to PayPal development. I am using the RestAPI sample project from GitHub for .NET and am attempting to complete a PayPal payment using the sample project. I am able to create the payment and...
View Article