Skip to content

leoleva/ns-rest-api-task

Repository files navigation

Secure Information Storage REST API

Project setup

  • Add secure-storage.localhost to your /etc/hosts: 127.0.0.1 secure-storage.localhost

  • Run make init to initialize project

  • Open in browser: http://secure-storage.localhost:8000/item Should get Full authentication is required to access this resource. error, because first you need to make login call (see postman_collection.json or SecurityController for more info).

Run tests

make tests

API credentials

  • User: john
  • Password: maxsecure

Postman requests collection

You can import all available API calls to Postman using postman_collection.json file

API

  • All responses are based on JSON
  • Unauthenticated request will be responded with 401 (UNAUTHORIZED)
ENDPOINT TYPE PARAMETERS MUST BE AUTHENTICATED
login POST username* password* No
logout POST - No
item GET - Yes
item POST data* Yes
item PUT id* data* Yes
item/{id} PUT id* Yes

* Parameter is mandatory

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published