hyperledger-archives / education-sawtooth-simple-supply

https://wiki.hyperledger.org/display/LMDWG
Apache License 2.0
51 stars 61 forks source link

Implement record POST route #5

Closed dplumb94 closed 6 years ago

dplumb94 commented 6 years ago

based on #4

To test:

  1. Create agent by sending POST localhost:8000/agents

    {
    "name": "bob",
    "password": "qwerty"
    }
  2. Copy auth token and add it to header

  3. Create record by sending POST localhost:8000/records

    {
    "record_id": "foo",
    "latitude": 44.982781,
    "longitude": -93.271967
    }