Run the application (go run .
) and import the Postman collection (index.postman_collection.json
).
Dependencies:
- Json Web Token (dgrijalva/jwt-go)
- HTTP Router (julienschmidt/httprouter)
Access rights:
- Anyone can search jokes
- Registered users (has role
User
) can create jokes - Users with admin rights (has role
Admin
) can delete jokes