GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Mohamed-samir03/Notes_RESTAPI_Ktor: RESTAPI Notes and Authentication Using Ktor and mySQL.

BranchesTags
Open more actions menu

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
gradle/wrapper
gradle/wrapper
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

Ktor HTTP and Authentication API

RESTAPI Notes (CRUD) and Authentication Using ktor (Kotlin) and mySQL Database.

Runs embedded web server on localhost:8080 (baseurl).

Endpoint CRUD Operations For Notes

  • GET All Notes.
{baseurl}/notes
  • GET One Note By ID.
{baseurl}/notes/{id}
  • POST One Note.
{baseurl}/notes

your json request

{
    "note":"write your note"
}
  • PUT Note By ID.
{baseurl}/notes/{id}

your json request

{
    "note":"update your note"
}
  • DELETE Note By ID.
{baseurl}/notes/{id}

Authentication Endpoint

  • POST Login User.
{baseurl}/login

your json request

{
    "userName":"mosamir",
    "password":"1234567"
}
  • POST Register User.
{baseurl}/register

your json request

{
    "userName":"mosamir",
    "password":"1234567"
}

MySQL Database

can use MySQL Workbench for create your database.

  • Create Database.
create database notes;
  • Select Database For Use.
USE notes;
  • Create Notes Table.
create table note(
id int not null auto_increment,
note varchar(1500) not null,
primary key(id)
);
  • Create Users Table.
create table users(
id int not null auto_increment,
userName varchar(100) not null,
password varchar(100) not null,
primary key(id)
);

About

RESTAPI Notes and Authentication Using Ktor and mySQL.

Topics

apiauthenticationdatabaseencryptinghttp-requestsjbcryptjwtkotlinktorktormmysqlrest-apiroutingserializationtoken

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.