Go Contact
This is a simple contact application. This API is an exercise to learn Golang with PostgreSQL.
Authentication
- User can register for a free account (Normal and Social e.g. Facebook)
- User can login to their account
- Authenticated user can create their contacts
- Authenticated user can get their contacts
Errors and Status Codes
If a request fails any validations, expect errors in the following format:
Testing API endpoints
Test | API-endpoint | HTTP-Verbs |
---|
Sign up a user | /api/user/new | POST |
Login a user | /api/user/login | POST |
Create a contact | /api/contacts/new | POST |
Get contacts of a user | /api/user{id}/contacts | GET |
Authors
Arnold M. Osoro - mmosoroohh