Skip to content

Commit

Permalink
Merge pull request #6839 from ballerina-platform/praneesha-patch-1
Browse files Browse the repository at this point in the history
Fix a minor typo in the RESTful get started guide
  • Loading branch information
praneesha committed May 7, 2023
2 parents 3480321 + 8023499 commit ff7476e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ service /covid/status on new http:Listener(9000) {
In this code:

- Unlike normal functions, resource methods can have accessors. In this case, the accessor is set to `get`, which means only HTTP `GET` requests could hit this resource. Ballerina automatically serializes Ballerina records as JSON and sends them over the wire.
- The default HTTP response status code for a resource method other than `post` is `200 OK`. For an HTTP `POST` resource, the default HTTP response status code is `201 Creted`.
- The default HTTP response status code for a resource method other than `post` is `200 OK`. For an HTTP `POST` resource, the default HTTP response status code is `201 Created`.

### Create the second resource to add data

Expand Down

0 comments on commit ff7476e

Please sign in to comment.