Skip to content

Commit

Permalink
call-the-create-api.md file Sinhala Translation - part 3 sst#491
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachin-Mamoru committed Aug 6, 2021
1 parent 60148a3 commit de37ad8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _chapters/si/call-the-create-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ function createNote(note) {
}
```

This does a couple of simple things.
මෙය සරල කරුණු කිහිපයක් කරයි.

1. We make our create call in `createNote` by making a POST request to `/notes` and passing in our note object. Notice that the first two arguments to the `API.post()` method are `notes` and `/notes`. This is because back in the [Configure AWS Amplify]({% link _chapters/configure-aws-amplify.md %}) chapter we called these set of APIs by the name `notes`.
1. `/notes` වෙත POST request කිරීමෙන් සහ අපගේ note object පාස් වීමෙන් අපි 'createNote' හි අපගේ create call ලබා දෙන්නෙමු. `API.post()` method සඳහා වන පළමු arguments දෙක `notes` සහ`/notes` බව සලකන්න. එයට හේතුව නම් [Configure AWS Amplify]({% link _chapters/configure-aws-amplify.md %}) පරිච්ඡේදයේ අපි මෙම API කට්ටලය `notes` නමින් හැඳින්වූ බැවිනි.

2. For now the note object is simply the content of the note. We are creating these notes without an attachment for now.
2. මේ වන විට note object සරලව note අන්තර්ගතයයි. අපි දැනට මෙම note නිර්මාණය කරන්නේ ඇමුණුමකින් තොරවය.

3. Finally, after the note is created we redirect to our homepage.

Expand Down

0 comments on commit de37ad8

Please sign in to comment.