member_api

Version, currently master branch1 version
  • master branchlatestMar 2, 2020

github.com/DeltadexGame/API

Game API that manages user authentication, cards and statistics

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  member_api:
    github: DeltadexGame/API
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.32.1
License
MIT
Author
Michael Forde
Target
  • member_api from src/member_api.cr

Dependencies

Runtime Dependencies

  • pg*github: will/crystal-pg
  • clear*github: anykeyh/clear, branch: master
  • kemal*github: kemalcr/kemal
  • dotenv*github: gdotdesign/cr-dotenv
  • kemal-basic-auth*github: kemalcr/kemal-basic-auth

README

API

Usage

Endpoints

  • Register - POST - /auth/register - JSON arguments username, password - returns 200 or 501
  • Login - POST - /auth/login - JSON arguments username, password - returns 200 or 403
  • Verify Token - POST - /auth - JSON arguments token - returns 200 or 403

Development

TODO: Write development instructions here

Deployment

TODO: Write installation instructions here

Contributing

  1. Fork it (https://github.com/your-github-user/member_api/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors