/restful-api

Self-built RESTful API

Primary LanguageJavaScript

📓 Wiki - RESTful API 📓

Description

  • Simple self-built RESTful API that stores data like Wikipedia.
  • Users can GET, PUT, PATCH, and DELETE articles by using Postman.
  • The API is written purely in JavaScript, runs by Node.js, data is stored in MongoDB and can be changed by using Postman for better visualisation.

Screenshots

Initial Data

{
    "_id" : "5c18e1892998bdb3b3d355bf",
    "title" : "REST",
    "content" : "REST is short for REpresentational State Transfer. 
    IIt's an architectural style for designing APIs."
}


{
    "_id" : ObjectId("5c139771d79ac8eac11e754a"),
    "title" : "API",
    "content" : "API stands for Application Programming Interface. 
    It is a set of subroutine definitions, communication protocols, 
    and tools for building software. In general terms, it is a set 
    of clearly defined methods of communication among various components. 
    A good API makes it easier to develop a computer program by 
    providing all the building blocks, which are then put together by the programmer."
}


{
    "_id" : ObjectId("5c1398aad79ac8eac11e7561"),
    "title" : "Bootstrap",
    "content" : "This is a framework developed by Twitter that 
    contains pre-made front-end templates for web design"
}


{
    "_id" : ObjectId("5c1398ecd79ac8eac11e7567"),
    "title" : "DOM",
    "content" : "The Document Object Model is like an API for 
    interacting with our HTML"
}


{
    "_id" : "5c18f35cde40ab6cc551cd60",
    "title" : "HTML",
    "content" : "///",
    "__v" : 0
}
2022 | karina4840