Here’s an outline with best practices for making your inquiry.
Galaxy APIs 101 Remove Customer is giving me Bad Request Error:
Details (like screenshots):
HTTP DELETE : galaxy-apis-101.glitch.me/customer/:cust_id
How I found the problem:
I followed the instruction given in the Galaxy API 101 guide.
First I added a customer using HTTP PUT . The request was successful, I verified the same by running the HTTP GET : galaxy-apis-101.glitch.me/customers and I received the following response.
From that i am using the id: N9mo66a-2 thats where i am getting the Bad Request Error
{
"customers": [
{
"id": "NqYeLjFBy",
"admin": "postman",
"adminUid": "abc123",
"name": "Ellen Ripley",
"address": "8421 Carole Road, Langworthtown, Niue",
"type": "individual",
"orders": 2
},
{
"id": "JvdYNfzMIt",
"admin": "postman",
"adminUid": "abc123",
"name": "Thomas Kane",
"address": "23630 Mitchell Corner, Port Horacio, Italy",
"type": "individual",
"orders": 99
},
{
"id": "UQoef2plkO",
"admin": "postman",
"adminUid": "abc123",
"name": "USCSS Nostromo",
"address": "1896 Nicolas Walk, Mercedesshire, El Salvador",
"type": "organization",
"orders": 10
},
{
"id": "N9mo66a-2",
"admin": "[email protected]",
"adminUid": "7b1eeb4d-6189-418b-ad28-08b7392b27be",
"name": "Saul O'Conner",
"address": "72794 Mayert Hill",
"type": "individual",
"orders": 0
}
]
}
I’ve already tried:l
I tried to debug the issue , but no luck