Code Monkey home page Code Monkey logo

Comments (3)

doug-lovett avatar doug-lovett commented on June 9, 2024

Moving to Sprint Backlog. Turns out this is a UI issue: if a draft exists the UI needs to include the draftNumber in the API request. In DEV I created a draft REGC_STAFF in the UI on 108328. I then grabbed the draftNumber from the database and submitted a registration via the API with the draft number included:
POST https://bcregistry-dev.apigee.net/mhr/api/v1/admin-registrations/108328

{
  "clientReferenceId": "UT-REGC-LOCATION",
  "ownLand": false,
  "attentionReference": "James Irving",
  "documentType": "REGC_STAFF",
  "draftNumber": "000608",
  "documentId": "87988395",
  "submittingParty": {
    "businessName": "ABC UNIT TEST COMPANY",
    "address": {
      "street": "222 SUMMER STREET",
      "city": "VICTORIA",
      "region": "BC",
      "country": "CA",
      "postalCode": "V8W 2V8"
    },
    "emailAddress": "[email protected]"
  },
	"location": {
	 "address": {
	   "city": "Oliver",
	   "country": "CA",
	   "postalCode": "V0H 1T2",
	   "region": "BC",
	   "street": "8300 Gallagher Lake Frontage Rd"
	 },
	 "locationId": 200859,
	 "locationType": "MH_PARK",
	 "pad": "1234",
	 "parkName": "Pleasant Valley"
	}
}

On submission the API correctly marked the draft as used and excluded it from the account drafts list.

from entity.

dimak1 avatar dimak1 commented on June 9, 2024

Ready in DEV.

from entity.

chdivyareddy avatar chdivyareddy commented on June 9, 2024

Verified in DEV!

Corrections:
image.png

image.png

Public Amendment:
image.png

image.png

from entity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.