Response model for specific status codes using Swagger
I am using Swagger to document my REST API (using asp.net web api 2). Is there a way in swagger to give response models for each possible responses for a given api call? I am annotating the status code...
View ArticleGetting 'fetch has been blocked by CORS policy: No...
while I am experienced in .NET and JavaScript, I am currently learning React and during the fetch to my REST API I am getting this error.Access to fetch at 'https://localhost:7142/api/Campaign' from...
View ArticleHow to properly use Gorm auto increment?
I have a Go struct that defines a table managed by gorm. It includes a unique, integer, primary key that auto increments.type CreatedSurvey struct { ... Id int `json:"id"...
View ArticleREST pattern for multiple entities
everyone!I have two REST endpoints:/projects/gamesEach project can have multiple games and of course, I can create projects and games by making POST requests to each one of them. No big deal.But I want...
View ArticleMy Vue API client is getting data OK, and I have the logic to turn it into...
DiscogsCSV is intended to do the following:Take as input a .csv file, the first column of which contains valid discogs release IDsLook these release IDs up on discogs API https://api.discogs.com/Return...
View ArticleCan login as superuser but not as normal user
i have made a super user and registering other users. but only able to log in as superuser and when i try to login as normal user its shows "Invalid phone number or password".Can someone help me with...
View ArticleHow to create JWT token in Symfony5?
I'm trying to create REST API with JWT authentification in Symfony5. At first I've tried to do as written here...
View ArticleIs there a way to have a user enter a url query and have a single function...
I'm playing with the Django rest framework and PostgreSQL, building an API that returns data on all of the stats from this NBA season. Rather than having a function to return stats for each category,...
View Articlemy azure web app (rest node api ) works with a curl request in terminal but...
enter image description hereI have REST API deployed on azure when I am hitting requests other than curl it is sending a response as 404 but when curl request is being hit resource get created...
View ArticleMongoqueryable Join query taking longer time
public async Task<PaginationResult<TypeEntity>> GetAllWorkFlowAsync(string filterCondition,string sort, int page, uint? limit, bool includeDeleted, string model) { var sharedResult =...
View Article401 Response From TPR FMCSA
I am a training provider and I am trying to submit my drivers data for Online courses to TPR registry.You can visit https://tpr.fmcsa.dot.gov/ to know more.I am using their training Provider developer...
View ArticleAPI based auth failed: wrong credentials. || Ansible [closed]
I am able to get the result when I do a normal REST API call with:curl --location 'https://10.1.2.80/api/v2/cmdb/firewall/address' --header 'Accept: application/json' --header 'Authorization: Bearer...
View ArticleUpdate Vee Validate after successful submission but API returns bad request
This is my component: SignupButton.vue<script setup>import { Form, Field, ErrorMessage } from 'vee-validate';import { toTypedSchema } from '@vee-validate/zod';import { z } from 'zod';const...
View ArticleSpringBoot csrf handling for API methods [duplicate]
I have a SpringBoot webapp, and it's working OK for API users to access by first "logging in" via the URI http://localhost:8081/loginRestMy WebSecurityConfig looks like this:...
View ArticlePassport.js Error Handling Instead of throwing the error into stdout
So I Have The Current Code For Authorization (and im probably going to merge login with signup):Strategy:const passport = require("passport")const { Strategy } = require("passport-local")const {...
View ArticleRestapi forbidden response in vb task
I have an API that I tested in Postman. I want to use this API in a task within my own software. I can call the Access Token, CSRF token, and cookies, but when it comes to sending the content I want...
View ArticleRestrict Restful API Access to Flutter client only?
I need to create a Restful API backend for my flutter app using NodeJS with Mysql. I'd like to restrict endpoint access to just the Flutter client. The user shouldn't have to register and the only...
View ArticleDirectus all API endpoints are returning 404 error
I have uploaded my directus code into the ssh server.But none of my APIs endpoint whether POST or GET is working, all returning 404 errors.However I can see all content, all items, can login etc.I am...
View ArticleIssues Connecting to Spirent TestCenter Using Java and Tcl
I'm having trouble connecting to Spirent TestCenter (STC) using both Java and Tcl scripts. Here are the steps I've taken and the errors I'm encountering:Using Java:I tried running a script Java with...
View ArticleCreate Adobe SIgn API with `addressbook_read` scope enabled
We are using the new Adobe Sign Reusable recipient groups feature. Works great, thank you Adobe!One problem, however. I seem to only be able to use the Adobe Sign GET...
View Article