{"info":{"_postman_id":"b9736d52-a32e-4d70-a87e-de9b2e3aec8a","name":"BondsAPI","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"5708033","collectionId":"b9736d52-a32e-4d70-a87e-de9b2e3aec8a","publishedId":"TVKHUFbK","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-09-27T00:47:27.000Z"},"item":[{"name":"Register","id":"8c79ad2d-4957-4fed-84ce-05b6d70a0f44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"kaneywaney11\",\r\n    \"password\": 12345\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/register/","description":"<p>Send a username and password in the body of the request as json and you will be registered as a user.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["register",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c79ad2d-4957-4fed-84ce-05b6d70a0f44"},{"name":"Login","id":"bf4f837a-d278-450e-b423-fde53be0772a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"kaneywaney11\",\r\n    \"password\": 12345\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/login/","description":"<p>Send your username and password in the body of the request as json and you will receive an authentication token back. </p>\n<p>This token must be used for all further requests in the header Authorization.  </p>\n","urlObject":{"protocol":"http","port":"8000","path":["login",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf4f837a-d278-450e-b423-fde53be0772a"},{"name":"Create Bond","id":"16c48902-869a-4d1c-a294-f2d4ab550e12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 41a1dd07229f62e564c633e79d097f9e182680c9","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"isin\": \"FR0000131104\",\r\n    \"size\": 100000000,\r\n    \"currency\": \"EUR\",\r\n    \"maturity\": \"2025-02-28\",\r\n    \"lei\": \"R0MUWSFPU8MPRO8K5P83\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/bonds/","description":"<p>Send the bond data in the body as json and a bond will be created if there is a matching legal name for it.</p>\n<p>Put the authorization token in the \"Authorisation\" header, with the value of the header being \"Token: {your_token}\".</p>\n","urlObject":{"protocol":"http","port":"8000","path":["bonds",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"16c48902-869a-4d1c-a294-f2d4ab550e12"},{"name":"BNP Get","id":"06469c93-eb48-4769-854a-65330b8efb61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://leilookup.gleif.org/api/v2/leirecords?lei=R0MUWSFPU8MPRO8K5P83","urlObject":{"protocol":"https","path":["api","v2","leirecords"],"host":["leilookup","gleif","org"],"query":[{"key":"lei","value":"R0MUWSFPU8MPRO8K5P83"}],"variable":[]}},"response":[],"_postman_id":"06469c93-eb48-4769-854a-65330b8efb61"},{"name":"Get Bonds","id":"9483b083-90cd-41ff-bbe0-03d445109cc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 41a1dd07229f62e564c633e79d097f9e182680c9","type":"text"}],"url":"http://127.0.0.1:8000/bonds?legal_name=BNPPARIBAS","description":"<p>Get a list of the bonds for a given user. You can user the parameter legal_name={some_name} to return the bonds matching the parameter.</p>\n<p>Put the authorization token in the \"Authorisation\" header, with the value of the header being \"Token: {your_token}\".</p>\n","urlObject":{"protocol":"http","port":"8000","path":["bonds"],"host":["127","0","0","1"],"query":[{"key":"legal_name","value":"BNPPARIBAS"}],"variable":[]}},"response":[],"_postman_id":"9483b083-90cd-41ff-bbe0-03d445109cc1"}]}