Questions tagged [endpoint]

This is a general tag used for all kinds of logic that reside in some receiving or sending scenario.

This is a general tag used for all kinds of logic that reside in some receiving or sending scenario. It's not necessarily bound to code, but may also be used in abstract or descriptive type of questions.

2085 questions
0
votes
1 answer

How to fetch and OTP from another endpoint in the middle of a javascript for cypress?

I am using Cypress to test this feature: I need to fetch an OTP from another URL in order to complete the deletion of a bucket. The rest of the script runs perfectly, except for the last line, where it should type the OTP into the field - if I leave…
0
votes
1 answer

How do I create a Generic postToAPI(route, package2send) function in React?

In our project we are using the MERN stack I want to create a generic function whose input is the path to any api endpoint in our server and the JSON package to POST to the server. I want it to return the JSON sent back from the server. That way…
Anon
  • 99
  • 7
0
votes
1 answer

Custom post type API custom endpoint for single post by ID

I've created a WordPress custom post type, then I've created REST API custom endpoint to GET all the posts works ok. Then I've created another custom endpoint to GET single post by ID. For example…
0
votes
2 answers

Don´t know why application not recognizing endpoint returning 404

I don´t have any idea if it´s missing something for this to start work. I´ve created all enviroment and system variables, downloaded repository, downloaded and configured the database and finally when I tried my "Hello Word" it didn´t work. Never…
0
votes
0 answers

Is it possible to call NET CORE microservises without ControllerBase directly by endpoint?

Long way is inserting meaningful microservices code as derived of ControllerBase class, adding various attributes like HttpGet and Authorize. Then place to Configure method something like app.UseMVC or app.UseRouting and all will be working…
Viacheslav
  • 1,054
  • 12
  • 16
0
votes
1 answer

Can't read data from endpoint parameter, only TokenType and ValueKind

I am trying to set up webhooks and receiving the payload in my endpoint. The payload gets send (as json) over http to my endpoint, in which I intercept the payload requestbody via the parameters in the endpoint action. The action only gets triggered…
0
votes
1 answer

Using double dots in a URL endpoint in Angular for more than one environment

I'm using Angular8, Java8, Maven, and Tomcat 8.0 and I have three environments that I would like to deploy my application with a single build. Angular is an application that handles "One build, one environment". It is possible to tweak it to run…
JojoGangster
  • 31
  • 1
  • 5
0
votes
1 answer

React: Can't pass an id to an endpoint in order to display an image

I'm quite new to react and have an issue that i'm not sure whats wrong. I have one external api with an endpoint that contains articles and another endpoint to get the images thats connected with the articles. I want to display the articles and the…
Sus
  • 63
  • 6
0
votes
0 answers

Web service error from SSIS package: "There was no endpoint listening at https://www.SomeWebservicesURL.com" after deploying to sql server

Can someone please help me here? I Googled and tried many suggestions with no success. Many thanks in advance! Below is description of my issue: I created a SSIS package using the Script Task to consume a web services in WSDL SOAP. It runs fine…
netNewBee
  • 31
  • 4
0
votes
0 answers

Is [FromQuery] applied on complex type instead of passing 10+ arguments a good idea for a GET endpoint?

For the sake of brevity and easier refactoring, I feel like I shouldn't have method calls spanning 2 lines of code just because their signature contains 10+ arguments. I feel like I should wrap them in an object. Is that a bad idea to do in a…
SpiritBob
  • 2,355
  • 3
  • 24
  • 62
0
votes
0 answers

Is it bad practice to use HTTP request to trigger logic rather than expecting response?

I have a method on my server that I want to run from time to time, though not on a consistent schedule or as a response to a specific event, and would trigger it manually. I can easily ssh into the server, cd into the directory, uncomment the…
Sal
  • 1,471
  • 2
  • 15
  • 36
0
votes
1 answer

How to call API with Bearer token Wso2 EI?

I have 2 api to request: API get token API request to work something (use OAuth2) Below is code to call get token:
0
votes
1 answer

Address of REST API hosted on service fabric

Suppose I have a stateless service running in service fabric and I have 5 nodes in my service fabric cluster. Now since each node in the cluster has an instance of stateless service, this means there will be 5 instances of my stateless service on 5…
0
votes
2 answers

How to create endpoint in angular to upload a image?

I have used kolkov angular editor in my angular application to create rich text editor. Now I want to upload the image from it to the server. I also have the function that takes a file as an argument and sends it to the server. …
Aaqib
  • 59
  • 9
0
votes
1 answer

API design - Optional body in client request - Status code to return if validation fails

In our API, one of the endpoint will expect clients to provide body/payload only in certain scenario. If the API is unable to generate a payload for given request based on the origin of the client then, we want our API to provide response with the…
VinothNair
  • 614
  • 1
  • 7
  • 24