adding DELETE /api/certificate and DELETE /api/certificate/{id} routes
Splitting up certificate.Delete into Delete and DeleteAll
Same for user.Delete and user.Get
Testing
Hit the URLs and made sure the responses were sane.
DELETE /api/certificate => No ContentDELETE /api/certificate/someid => 404GET /api/user => [{my_user}]GET /api/user/my_user => {my_user}GET /api/user/my_user_but_not => 404DELETE /api/user/my_user_but_not => 404DELETE /api/user => No Content
Relies on https://github.com/ImageWare/TLSential/pull/40 due to changes in api/api.go Addresses https://github.com/ImageWare/TLSential/issues/38
This PR addresses the following issues:
adding
DELETE /api/certificate
andDELETE /api/certificate/{id}
routes Splitting up certificate.Delete into Delete and DeleteAll Same for user.Delete and user.GetTesting
Hit the URLs and made sure the responses were sane.
DELETE /api/certificate
=>No Content
DELETE /api/certificate/someid
=>404
GET /api/user
=>[{my_user}]
GET /api/user/my_user
=>{my_user}
GET /api/user/my_user_but_not
=>404
DELETE /api/user/my_user_but_not
=>404
DELETE /api/user
=>No Content