go-json-placeholder

command module
v0.0.0-...-4983837 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 10 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL