[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More







Representational state transfer (REST) is an architectural style that gives a coordinated set of constraints to the design of components in a distributed hypermedia system used to design networked applications. RESTful systems typically communicate over Hypertext Transfer Protocol (HTTP) with the same HTTP verbs (GET, POST, PUT, DELETE, etc.) that web browsers use to retrieve web pages and to send data to remote servers. REST interfaces with external systems using resources identified by Uniform Resource Identifier (URI) that can be operated upon using standard verbs.

Share tech news, updates, or what's on your mind.

Sign up to Post

I try to list posts from a custom taxonomy, but return an error by api rest v2.

Angular Fundamentals
LVL 12
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Has been almost a year that I switch to Auth0 in order to manage my customer's access to the dashboard of my application. Nowadays I need to implement access for a RESTFULL API.

If I follow the instructions in order to secure the NodeJS app using JWT it works like a charm. The issue is that I am not properly sure on the implementation for the end user in order to get the token needed for access this API.

I thought of creating the tokens on the dashboard or just use a server side implementation for the login/authentication. I did the last using the access to my own database before and worker amazingly. My issue is that I am not completely sure on how to do it for the end user using Auth0.

Would be great if you can guide me in order to implement the login/authentication side of the API using auth0 and nodejs.
Hello Sirs
I am using serious issues with Charset Encoding in a REST application. I use Spring and the encoding in the bean MessageSource and Tymeleaf resolver  is set to UTF-8.
I get this when I return Json string:
\ufffd replacing special characters like é, or any other letter with accent.
How can I solve this?

Best regards.
My gaming laptop, an Asus G551JM is having some weird boot issues.

It used to have a hybrid drive, and after the drive broke I bought a new Kingston UV500 960GB SSD for it.
After installing Windows 10 on it I quickly noticed that the boot times were... odd.

Sometimes a boot lasts 2 minutes, sometimes around 40 seconds.
I ran a boot cycle test with Windows Performance Recorder.
The pre-session init phase seems to take around 30 seconds, the rest very little.
It just feels like something is stalling... and once it times out the computer then boots really fast.


I'm new to the program, so I admittedly don't really understand them well.
Perhaps some of you are familiar with them?

This is my personal computer, so I feel it's fine for me to share the log files:

I've also ran a few disk check programs and all of them have reported that the disk is in excellent condition.
It moves files fast and seems to work great in actual use.

Also, oddly, the computer would restart whenever it was trying to recover from sleep mode... but I kind of fixed it.
I read that some Asus laptops with sleep mode issues start working if you re-flash them with the same BIOS it already has, using WinFlash.
I gave it a shot! ...and now instead of rebooting from sleep mode, it actually recovers. ...very slowly (1 min 30 sec or so)
(Re-flashed from the already newest version... I have NO idea why that changed anything!)

I've …
Hello, Experts!


Windows Server 2016
IIS version 8
the site lives in c:\inetpub\sales.cbac.com
ports are http 80 and https 443


What might be causing the issue of receiving data from a REST call using angular hosted on IIS 8 (see image attached)? I want to start a dialogue so you guys can ask more questions and I could provide more narrowed answers.
Hi, Experts,

I am building a node JS web app that will call REST API from one login user info.


spefically from


the goal is to attain this


but when you use the example curl request you get this:

[code]curl -XGET "https://openid-connect.onelogin.com/oidc/me" \
> -H "Authorization: Bearer 0e4e2d02323de1e71dda7843d968f20425965488d407fbc952927389b63517ac5663"
{"error":"invalid_token","error_description":"invalid token provided"}[/code]


[code]curl -XGET "https://domain.onelogin.com/oidc/me" \
> -H "Authorization: Bearer 0e4e2d02323de1e71dda7843d968f20425965488d407fbc952927389b63517ac5663"
{"error":"invalid_token","error_description":"invalid token provided"}[/code]

the flow is API call goes to one login and one login passes access key so you can get user info. when you try to call user info you get an error.

any help would be greatly appreciated.

thank you
I have two aspx pages, default.aspx and index.aspx .
Index page has lot of controls using multiple dropdowns, one for world region, another dropdown for country, another for capitals .
 I want to open index.aspx page from default.aspx page as a bootstrap modal pop up, and load these dropdowns . users can select these and save them in the database.
I have created a mark up in the default.aspx page for the bootstrap Modal.
I am trying to save/load these values in the dropdown based on the user id . so I have this so far, see below.
I added a WebMethod attribute to my function in index.aspx.cs page.

do i make individual calls to populate each drop down ? all the values for each dropdown needs to saved in the database.
when user clicks saves button , how do i send all the selected value in all the dropdown list to be saved? what would that function look like?

$().ready(function() {
        type: "GET",
        url: "Default.aspx/GetRegions",
        data: "{}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function(data) {
            $.each(data.d, function(index, item) {
                $("#ddRegions").get(0).options[$("#ddRegions").get(0).options.length] = new Option(item.Display, item.Value);
        error: function() {
            alert("Failed to load genders");


Hi Guys

I am needing to trash the contents of a 60+ Gig mailbox on our exchange 2010 environment.
I was looking at the below script and tested it on another mailbox and it works like a charm.

Search-Mailbox -Identity "Peter Pan" -DeleteContent

But as always the scope gets changed on min 99 and now the request is to delete all mail except 1 months (Latest mail) worth of mail in the mailbox.
Now I am not a guru on PowerShell, but surely there should be something I can add to my current command that will leave 1 months worth of latest mail and trash the rest?
Any  assistance win this would be appreciated.

Hi Expert,

When i'm selecting data from external table getting following error , i want to capture all the error into a log for the error visibility.

ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-05002: There are no matching files for any file specification in the LOCATION clause.

--I'm using below pkg for creating message for user

o_error_message := SQL_LIB.CREATE_MSG ('PACKAGE_ERROR',
                                             'ERROR:'|| L_mark || '|' || sqlerrm,
                                              to_char (sqlcode));
--Here the pkg only print the ORA -Error , Here i'm looking for both "ORA" and "KUP" error.

Open in new window

But now only 1st line "' ORA-29913: error in executing ODCIEXTTABLEOPEN callout"  got printed in output. rest of lines are skipped.

Please share the solution for this.

Thanks in Advance!
I am wanting to use REST api with siteminder 12.8 to simply pull a lit of partnerships.
Would anyone have experience setting this up?
Become a CompTIA Certified Healthcare IT Tech
LVL 12
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

My website has recently gotten a new IP-address (shared host), but though the rest of the world can see it, I cannot, even after 48 hours. I have flushed my DNS, but to no avail. The problem comes in all browsers. Flushed my cache as well, but the problem remains.

While trying I also found that I cannot start the power shell either normally or as admin. Nothing happens when I click on them (The command prompt itself comes up outside the power menu). I have added this key: Windows Registry Editor Version 5.00
but again no use. I am on W10
I am setting up an Office 365 Business Essentials package for a small business.  They are currently using G Suite.  I had planned to move a user over to test that everything was working the way it should be adding all of the rest of the users.  If I make the DNS entries in G Suite, is that going to apply to every user or how can I simply migrate one account and modify one account at a time to ensure a smoother transition and not having everyone freaking out about the transition at once?
I am trying to create a method which can retrieve JSON objects.  I’m using the Jama API (https://dev.jamasoftware.com/rest)
To simplify it I am using RestSharp
I start by using the Jama swagger tool to test the interface.  This produces a Response Body.  I take this response body and in visual studio create a new class using the paste special ‘paste JSON as classes’ command.

This results in a new class:

public class Item

        public class Rootobject
            public Meta meta { get; set; }
            public Links links { get; set; }
            public Datum[] data { get; set; }

            public static explicit operator Rootobject(List<object> v)
                throw new NotImplementedException();

        public class Meta
            public string status { get; set; }
            public DateTime timestamp { get; set; }
            public Pageinfo pageInfo { get; set; }

        public class Pageinfo
            public int startIndex { get; set; }
            public int resultCount { get; set; }
            public int totalResults { get; set; }

        public class Links
            public DataFieldsLookup5 datafieldslookup5 { get; set; }
            public DataLockLockedby datalocklockedBy { get; set; }
            public DataFieldsLookup6 datafieldslookup6 { get; set; }
            public DataFieldsLookup3 datafieldslookup3 { get; set; }

Open in new window

Hello Experts,

I was writing a restful apis
I would like to have a snippet of code to  which will handle the exception like
If request was successful, then return 2xx code (3xx for redirect).
 If there was an internal logic error on a server, then return 5xx. If there is anything wrong in client request, then return 4xx code.
 like to have a user friendly description of the errors...


I've a question in relation to setting up VLANs.  I need to add another subnet to my network, I would like to separate out our HR dept (to begin with, the others will follow) and to free up some IP addresses on our existing Subnet.  I have four switches, two are Cisco SG 200-50, the other is a Cisco Catalyst 2960-X and the last one is a Catalyst 3560-CG.  I also have an MPLS router with our third party company to connect to the rest of our sites.  I've created a number of VLANs on the 3560, one for our HR Dept, one for management and a few others that I'll use later down the line.  My question is, how does it all fit together.  I'm aware the the 3560 will be carrying out the routing of the VLANs but should I have trunk links between all the switches (the HR folk will be connected via the 2960)?  Should the 3560 be direcly connected to the MPLS router, if not and I plug it directly into another swithc, surely that would create a loop.  I have the basics down (I think), I've created the VLANs, setup their interface IPs, enabled the 3560 for routing and not i'm stuck on the trunks and how it should all fit together.

Cheers all for any help
Two or Single Request

Assume we expose both controller and service methods as REST APIs

When we call a controller method - 2 HTTP request or One Http Request will be made ???

Calling service API via REST API will be another HTTP request?

Please advise.
I went through the URL - https://dzone.com/articles/quick-guide-to-microservices-with-kubernetes-sprin where both the controller and the service methods are exposed as REST API's

The confusion comes and raises the question whether we need to expose controller methods as REST APIs or Service methods are APIS

if we make both of them as REST APIs then when we call a controller methods - 2 HTTP request might be sent and will cause performance issue.

Please advise.
I have a field in a SQL 2014 database that started disappearing after a backup (full or transaction). The rest of the fields are populated, just the one gets emptied. We noticed it during an upgrade of the front end application.

I am trying to write some VBA to make a REST API call. This call needs to fall into three stages.

Stage 1 send some authentication information.

I have a URL will I must make a POST call to include a payload of a "username" and "Password". This will then return a authorisation token.

Stage 2

I need to use the token mentioned in Stage 1 to authenticate.

Stage 3

I need to pass a payload to a slightly different URL that contains the name of the query I wish to execute

I have made available the Microsoft XML, v3.0 to my MS Access database.

Can anyone help me design this VBA code?
Why Diversity in Tech Matters
LVL 12
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

hi all,

Any known problem on  MariaDB to work with MySQL Enterprise and MySQL community?

what need to setup so that they all work together well ?

we are considering to save cost on, e.g. only some of them are MySQL Enterprise and the rest are MySQL community/MariaDB.

any idea?
How do I call a BI publisher report via an apex rest service.
Can you please share any examples / links
I am attempting to setup Rest API in VBA and need some help walking through the steps. Can anyone help me by walking me through step by step for that I can learn how to do this for future projects?
i am trying to print a form which has textboxes and data gridveiw  using Printdocument control, the code below will print the text boxes and first cell of grid view , for the rest of the cells i am getting following  error :
An unhandled exception of type 'System.NullReferenceException' occurred in System.Windows.Forms.dll
Object reference not set to an instance of an object.

 private void btnPrint_Click(object sender, EventArgs e)
            printPreviewDialog1.Document = printDocument1;
e.Graphics.DrawString("Date: "+DateTime.Now.ToShortDateString(),new Font("Arial",12,FontStyle.Bold),Brushes.Black,new Point(20,95));
            e.Graphics.DrawString("Report Number" + txtReportNumber.Text, new Font("Arial", 12, FontStyle.Bold), Brushes.Black, new Point(20, 150));
            new Font("Arial",12,FontStyle.Bold),Brushes.Black,new Point(20,170));
            e.Graphics.DrawString("SN", new Font("Arial", 12, FontStyle.Bold), Brushes.Black, new Point(65, 185));
            e.Graphics.DrawString("Reference", new Font("Arial", 12, FontStyle.Bold), Brushes.Black, new Point(180, 185));
            e.Graphics.DrawString("Amount", new Font("Arial", 12, FontStyle.Bold), Brushes.Black, new Point(480, 185));

Open in new window

I have a PHP REST API, built from this tutorial:

I need to do these steps in one function and am not sure how to accomplish it.

1. Accept XML Request
2. Respond to request with XML response and 200 status code
3. Send another XML response and 200 status code to a URL parsed from the XML Request

Currently. I have it like this:
function ProAddRq() {

    // If this isn't a POST, respond with 405...
    if($this->get_request_method() != "POST"){
        $this->response('Error code 405, Method not allowed.',405);

    // Get the XML request from input
    $request = file_get_contents("php://input");

    // Get the RqUID from the request
    $xml = @simplexml_load_string($request);               
    $RUID = strtolower($this->xml->xpath("//ProAddRq/RUID")[0]);

    // Build the ACK message CML from the template
    $ack_data = array();
    $ack_data["RUID"] = $RUID;
    $ack_data["PKey"] = "2b3420be-69bf-4bb7-43bb-b632947e236b";
    $ack_data["Status"] = "Accept";

    // using PHP Mustache to render the XML with the values
    $xml_post_string = $this->m->render('../../views/ack' , $ack_data);

    // Call the SendInventory function to send to the URL that is parsed from the $request

    // set the content_type
    $this->_content_type = 'application/xml';

    // respond with the ACK and 200 response...
    // Setting 

Open in new window

Can I replicate a search using the Google Maps API local search with  an iOS MKLocalSearchRequest() ?  For example, using the Google API, making a map search using the keyword "hostels" works correctly. In iOS using MKLocalSearchRequest(), using a naturalLanguageQuery, I just get hotels. Is there a way to fix this?  Or am i forced to use the Google Maps API within iOS?






Representational state transfer (REST) is an architectural style that gives a coordinated set of constraints to the design of components in a distributed hypermedia system used to design networked applications. RESTful systems typically communicate over Hypertext Transfer Protocol (HTTP) with the same HTTP verbs (GET, POST, PUT, DELETE, etc.) that web browsers use to retrieve web pages and to send data to remote servers. REST interfaces with external systems using resources identified by Uniform Resource Identifier (URI) that can be operated upon using standard verbs.

Related Topics