Skip to content

MattiJH/cppMicroService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cppMicroService

This project is a C++ microservice with connection to the SQLite3 DB and frontend implementation for Windows.

The code is base on micro-serivce on C++ using the C++ REST SDK sample: ivanmejiarocha/micro-service and windows visual studio 2017 project -version of the sample: kadirmalak/micro-service-vs-2017

In order to run the .exe (inside IDE or outside) make sure to run it as Administrator. When using the frontend make sure that the ip variable in .js files are same as the ip and port microservice is listening.

METHOD ADDRESS INFO
GET api/service/test Test rest interface
GET api/songs/all Gets all the data from DB
POST api/songs/add Adds data to the DB
POST api/songs/update Updates data in DB
POST api/songs/search Search data in DB
DELETE api/songs/delete Delete data in DB

Example JSON:

{
  "song_id" : 1,
  "song_name" : " You Suffer",
  "artist": "Napalm Death",
  "album" : "Scum",
  "length" : "0:01",
  "year" : "1986",
  "lyrics" : " You Suffer But Why?"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published