Skip to content

ctpantoja-dev/notes-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes Service

Status


RESTful API that allows users to create, retrieve, update, and delete notes.
Each note can consist of a title and a body

Table of Contents

Getting Started

This document provides a quick guide to setting up and using this Spring Boot API project.

Prerequisites

Setup

Clone the project:

git clone https://github.com/ctpantoja-dev/notes-service.git

Navigate to the project directory:

cd <directory_to_notes_service>

Install dependencies:

mvn install

Running the Application

Start the application:

mvn spring-boot:run

This will start the application on the default port (usually 8080).

Using the API

  • The application exposes a RESTful API.
  • You can interact with the API using tools like Postman or curl.
  • Refer to the source code for specific API endpoints and their functionalities.

Retrieving a note

curl -X GET http://localhost:8080/notes/<note id>

Retrieving all notes

curl -X GET http://localhost:8080/notes

Creating a note

curl -X POST http://localhost:8080/notes -H "Content-Type: application/json" -d '{"title":"Test Title", "body": "Test Body"}'

Updating a note

curl -X PUT http://localhost:8080/notes/<note id> -H "Content-Type: application/json" -d '{"title":"Updated Title", "body": "Updated Body"}'

Deleting a note

curl -X DELETE http://localhost:8080/notes/<note id>

About

REST API for notes operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages