Skip to content

0x4bd0/go-books-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

go-books-api

A simple REST API built to try Go lang

Requirements

  • No third-party packages/dependencies

Endpoints

  • GET /books returns list of books as JSON
  • GET /books/{id} returns details of specific book as JSON
  • POST /books to add book as JSON
  • POST /books returns status 415 if content is not application/json
  • PUT /books/{id} to update a book
  • DELETE /books/{id} to delete a book

Data Types

A book object should look like this:

{
  "id": "someid",
  "name": "name of the book",
  "author": "author of the book",
  "bookType": "the type of the book",
  "price": 99,
}

Where is the data stored ?

There is no database, using the machine memory.

What do i think about Go lang ?

This lang rocks !

About

A simple REST API built to try Go lang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages