gin-jwt-secured-demo

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

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 9 Imported by: 0

README

GIN JWT secured

cURL requests

Tags
  • Get all tags

    curl --location 'localhost:8888/api/tag'
    
  • Get a tag by ID

    curl --location 'localhost:8888/api/tag/1'
    
  • Create a tag

    curl --location 'localhost:8888/api/tag' \
    --header 'Content-Type: application/json' \
    --data '{
        "name": "test"
      }'
    
  • Update a tag

    curl --location --request PATCH 'localhost:8888/api/tag/1' \
    --header 'Content-Type: application/json' \
    --data '{
        "id": 1,
        "name": "updated tag"
        }'
    
  • Delete a tag

    curl --location --request DELETE 'localhost:8888/api/tag/1'
    
Users
  • Signup

    curl --location 'localhost:8888/api/auth/signup' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "fullname": "John Doe",
        "email": "john.doe@email.com",
        "password": "123456"
        }'
    
  • Signin

    curl --location 'localhost:8888/api/auth/signin' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "email": "john.doe@email.com",
        "password": "123456"
        }'
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
data

Jump to

Keyboard shortcuts

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