go-public-api-todo

command module
v0.0.0-...-29094d0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-2.0 Imports: 11 Imported by: 0

README

Go Public API Todo

This is a Todo list public API written on Golang. You can rebuild it and save it for your own project, or you can use it directly for your Frontend project. Direct API endpoint: https://todoapi.rozik.in

How to use it

- Use the public API
  1. Read API documentation on api.json. The API endpoint is https://todoapi.rozik.in
  2. Autenthicate yourself with simple authentification https://todoapi.rozik.in/login with method POST and form data username: admin and password: admin
  3. Save the token.
  4. Do the request with the token as an Authorization Bearer
  5. If you want to try the graphQL, you can visit: https://todoapi.rozik.in/gql_play with query endpoint https://todoapi.rozik.in/gql_query
- Rebuild the API
  1. Pull or copy the repository
  2. Create your own .env file from the example.env file. (don't use username root)
  3. Do docker-compose "docker-compose up"
  4. Access your API from http://localhost:8200
  5. Read API documentation on api.json
  6. Autenthicate yourself with simple authentification http://localhost:8200/login with method POST and form data username: admin and password: admin
  7. Save the token.
  8. Do the request with the token as an Authorization Bearer

Documentation

Overview

* * Use this function to build your own environment * *

Directories

Path Synopsis
web

Jump to

Keyboard shortcuts

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