Tags API Documentation

A Simple to use CRUD API for your Tags application. This API is ready to use with any frontend/backend framework or language.

Endpoints

Name Endpoint Method Copy
Tag List /api/tags GET
Tag Detail /api/tags/1 GET
Tag Create /api/tags POST
Tag Update /api/tags/1 PUT
Tag Delete /api/tags/1 DELETE

How to Use

Tag List API
Details

fetch('https://simplecrudapi.com/api/tags')
	.then(response => response.json())
	.then(data => console.log(data))
	.catch(error => console.error(error));

Tag Detail API
Details

fetch('https://simplecrudapi.com/api/tags/1')
	.then(response => response.json())
	.then(data => console.log(data))
	.catch(error => console.error(error));

Tag Create API
Details

fetch('https://simplecrudapi.com/api/tags', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'Education',
    description: 'Sample Tag for Education'
  })
})
	.then(response => response.json())
	.then(json => console.log(json))
	.catch(error => console.error('Error posting data:', error));

Tag Update API
Details

fetch('https://simplecrudapi.com/api/tags/1', {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'Updated Tag Name',
    description: ''
  })
})
	.then(response => response.json())
	.then(json => console.log(json))
	.catch(error => console.error('Error updating tag:', error));

Tag Delete API
Details

fetch('https://simplecrudapi.com/api/tags/1', {
  method: 'DELETE',
  headers: {
    'Content-Type': 'application/json'
  }
})
	.then(response => response.json())
	.then(json => console.log(json))
	.catch(error => console.error('Error deleting tag:', error));

Code Sandbox Demos

No Code sandbox demos found yet!

No demos found, You can create a demo and contact us to put that with your credit link.

Contact Us

Or,

Browse All Code sandbox Demos

Our Proudly Sponsors 🎉

© 2024 Simple CRUD API. All rights reserved.