Skip to content

ramstime/restapiservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rest api service (Golang API Gateway with Redis DB)

Golang REST API server with Redis database. It will expose APIs for creating/updating different company information in webserver.

GET - Reads an existing resource
POST - Creates a new resource
PUT - Updates an existing resource
DELETE - Deletes an existing resource

#compile

make

#run

./bin/restapiservice

#test

from browser/postman/curl hit the fallowing urls

POST

http://127.0.0.1:9070/api/companyinfo/v1/comp_instance/cisco-323

GET

http://127.0.0.1:9070/api/companyinfo/v1/all

http://127.0.0.1:9070/api/companyinfo/v1/comp_instance?compid=cisco-323&time=any