Skip to content

A simple clone of JSON Placeholder, written in go with chi.

License

Notifications You must be signed in to change notification settings

krish-r/go-json-placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-json-placeholder

A simple clone of JSON Placeholder, written in go with chi.

Usage

  • Clone the Repository

  • Run

    # Runs on port 3000
    go run .

Resources

/users 3 users
/posts 8 posts
/comments 12 comments
/albums
/photos
/todos

Routes

  • /users

    GET /users
    GET /users/1
    GET /users/1/posts
    POST /users
    PUT /users/1
    PATCH /users/1
    DELETE /users/1
  • /posts

    GET /posts
    GET /posts/1
    GET /posts/1/comments
    POST /posts
    PUT /posts/1
    PATCH /posts/1
    DELETE /posts/1
  • /comments

    GET /comments
    GET /comments/1
    GET /comments/?postId=1
    POST /comments
    PUT /comments/1
    PATCH /comments/1
    DELETE /comments/1

About

A simple clone of JSON Placeholder, written in go with chi.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages