shai-almog / JSONDemo

A simple file storage based on JSON/REST built with Spring Boot. This code is meant as a demo not as a real world tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON Demo

This is a simple demo that let's me show off different JSON libraries and how they work.

Create a new user:

curl -X PUT -H "Content-Type: application/json" -d '{"login":"shai","password":"123456"}' http://localhost:8080/addUser

Login:

curl -X POST -H "Content-Type: application/json" -d '{"login":"shai","password":"123456"}' -H "type: jackson" http://localhost:8080/auth

Adding data to the DB:

curl -X POST -H "Content-Type: application/json" -H "Authorization: 45971c45-4049-48f8-970f-04d47be2defc" -d '[{"coreData":[20,22,22,22,33,44]}]' http://localhost:8080/create

About

A simple file storage based on JSON/REST built with Spring Boot. This code is meant as a demo not as a real world tool


Languages

Language:Java 100.0%