GithubHelp home page GithubHelp logo

Comments (3)

annegentle avatar annegentle commented on August 22, 2024

I'd love to see your screenshots so we can document them for others as Postman updates change what you see. I'm using Postman 7.36.1 on Mac and getting HTML back even when sending an Accept: application/json Header so I'd like to get to the bottom of the difference.

To answer your excellent questions here's some more information. If the API service has documented a DELETE command then it is allowed with the credentials you are using, the service itself will have the checks in place to make sure you have the authorization to do the deletion. I'm looking at the documentation at http://www.icndb.com/api/ to try to find out, and that's where you would look also. I only see GET methods allowed, so it's likely that even if you sent a DELETE the service will not allow you to delete anything.

With a REST API, it's not a local object you're working with, it's an object on the service - you could look at https://developer.cisco.com/learning/modules/rest-api-fundamentals for more info. It's very similar to the Network Fundamentals course but with more REST API examples that you might find helpful.

from netprog_basics.

lowfell avatar lowfell commented on August 22, 2024

I'd love to see your screenshots so we can document them for others as Postman updates change what you see. I'm using Postman 7.36.1 on Mac and getting HTML back even when sending an Accept: application/json Header so I'd like to get to the bottom of the difference.

To answer your excellent questions here's some more information. If the API service has documented a DELETE command then it is allowed with the credentials you are using, the service itself will have the checks in place to make sure you have the authorization to do the deletion. I'm looking at the documentation at http://www.icndb.com/api/ to try to find out, and that's where you would look also. I only see GET methods allowed, so it's likely that even if you sent a DELETE the service will not allow you to delete anything.

With a REST API, it's not a local object you're working with, it's an object on the service - you could look at https://developer.cisco.com/learning/modules/rest-api-fundamentals for more info. It's very similar to the Network Fundamentals course but with more REST API examples that you might find helpful.

Hello Anne. Thank you for the quick response. When I was using Delete then, then send I would get a 200 response which I thought was confirmation of the Deleted file, but in the body, I could just see a NEW random joke from the icndb so are you saying that i wasn't dleting a file, i was just once more invoking the GET from the URL https://api.icndb.com/jokes/random ?

Is that what you are saying as that makes sense ?

from netprog_basics.

lowfell avatar lowfell commented on August 22, 2024

see last comment

from netprog_basics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.