cURL
curl --request POST \
--url http://localhost:8081/admin-service/specialties \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:8081/admin-service/specialties', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/admin-service/specialties"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Post admin servicespecialties
Create specialty
POST
/
admin-service
/
specialties
cURL
curl --request POST \
--url http://localhost:8081/admin-service/specialties \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:8081/admin-service/specialties', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/admin-service/specialties"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
The body is of type object.
Response
Created
⌘I