Comments (3)
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.
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.
see last comment
from netprog_basics.
Related Issues (20)
- programming_fundamentals/python_part_1/example3.py question
- programming_fundamentals/python_part_3/api_requests_example.py sandbox configuration
- Programming Fundamentals Rest-part1 curl examples #3 error 406 HOT 1
- Sandbox working? HOT 1
- Unable to Connect to Nexus 9Kv Sandbox for NetDevOps Ansible Tutorials HOT 1
- Did anyone manage to run example 3 by netconf ? HOT 1
- has anyone managed to run python_part_2 yet ? HOT 1
- devnet
- (python_part_2) What's is scratchpad.py file for ? It's not working.
- sandboxdnac2 is not authenticating HOT 2
- programming_fundamentals/rest_part_2 Sandbox is not present HOT 3
- Ansible Modules link is broken HOT 1
- python3 upgrade? HOT 1
- Link to Slide Download is Broken for HOT 1
- xmltodict help please Python Part 3 HOT 7
- Help with Python Part 3 request.get Access Denied Why ? HOT 1
- Python Part 3 request.get Access Denied Why ? HOT 2
- Connection timed out for URL changes.
- Have you considered updating the Python shebang for all code examples?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netprog_basics.